绘制五角星

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 @ 2020-09-15 08:18  决战到天亮  阅读(162)  评论(0)    收藏  举报