绘制五角星

import turtle
turtle.fillcolor("red")
turtle.begin_fill()
n=1
while n<=5:
   turtle.forward(200)
   turtle.right(144)
   n=n+1
turtle.end_fill()
turtle.Turtle().write("五角星",font=("黑体",20,"bold"))

 

 

 

posted on 2021-01-11 16:15  RUNFIFA  阅读(68)  评论(0)    收藏  举报