五角星

import turtle        
turtle.pencolor("yellow")

turtle.pensize("3")
turtle.fillcolor("red")
turtle.begin_fill()   
count = 1           
while count <= 5:
    turtle.forward(100)
    turtle.right(144)
    count += 1
turtle.end_fill()     

 

posted @ 2020-03-12 10:36  youngTW  阅读(102)  评论(0)    收藏  举报