五角星绘制

import turtle
turtle.color("red")
turtle.pencolor("black")
turtle.penup
turtle.fd(-100)
turtle.pendown
turtle.begin_fill()
for i in range(5):
  turtle.fd(100)
  turtle.right(144)
turtle.end_fill()
turtle.done()
View Code

 

posted @ 2020-03-11 23:30  zzh007  阅读(76)  评论(0编辑  收藏  举报