用户:EmpowerAll查看:15 回复:0 评论:0 创建时间:2020-02-21T12:27:21
【作品展示】

【作品介绍】
【作品源代码】
import turtle
import time
t = turtle.Pen()
frequency = 0
def draw_petal():
t.circle(50, 90)
t.fillcolor("#FFFF00")
speed = int(input('speed?'))
t.speed(speed)
t.begin_fill()
while True:
frequency += 1
draw_petal()
t.left((360 / 3))
if (frequency == 12):
break
t.end_fill()
time.sleep(5)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn