太阳花

太阳花报告

一、 准备

  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()

 

三、 保存,运行

 

posted @ 2019-03-06 23:13  Coylin  阅读(144)  评论(0编辑  收藏  举报