五角星绘制

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()

 

原文地址:https://www.cnblogs.com/02-12/p/12493769.html