少儿编程-王铭麒
作者:互联网
陀螺
import turtle
lst=['red','blue','green']
turtle.tracer(False)
angle=5
def draw():
turtle.clear()
turtle.pensize(15)
for i in range(3):
turtle.forward(200)
turtle.dot(200,lst[i])
turtle.backward(200)
turtle.left(120)
turtle.right(angle)
def process():
draw()
turtle.ontimer(process,100)
process()
turtle.done()
标签:turtle,200,draw,angle,process,编程,少儿,lst,王铭 来源: https://blog.csdn.net/weixin_46754996/article/details/118445699