#画太阳花
import turtle
import time
turtle.pencolor((1.0,0,0) )
turtle.begin_fill()
turtle.fillcolor((1.0,1.0,0))
while True:
turtle.forward(600)
turtle.left(170)
if abs(turtle.pos()) < 1: break
turtle.end_fill()
turtle.hideturtle()
turtle.done()
time.sleep(10)
网友评论