太阳花

太阳花报告

一、 准备

  1. 打开Python界面

 

Ctrl+N

 

二、 编程

from turtle import *

color('red','yellow')

begin_fill()

while True:

forward(300)

  left(170)

  if abs(pos()) < 1:

            break

end_fill()

done()

 

三、 保存,运行

 

猜你喜欢

转载自www.cnblogs.com/Coylin/p/10486826.html