循环星星

import turtle
turtle.pencolor('red')
turtle.fillcolor('yellow')
turtle.begin_fill()

while True:
    turtle.forward(100)
    turtle.right(25)
    if(abs(turtle.pos()))<1:
        break

turtle.end_fill()
turtle.done()

 

posted on 2018-05-09 21:40  八达岭  阅读(120)  评论(0)    收藏  举报