五角星绘制

1 from turtle import *
2 fillcolor("red")
3 begin_fill()
4 while True:
5     forward(200)
6     right(144)
7     if abs(pos()) < 1:
8             break
9 end_fill()

 

posted @ 2020-09-15 19:46  小伟往往  阅读(119)  评论(0)    收藏  举报