五角星绘制

1 from turtle import*
2 fd(-150)
3 color("black","red")
4 begin_fill()
5 for i in range(5):
6     fd(300)
7     right(144)
8 end_fill()
9 hideturtle()

 

 

 

 

posted on 2020-03-14 19:37  B·W  阅读(151)  评论(0编辑  收藏  举报