1.五角星绘制

import turtle
import time

turtle.pensize(1)
turtle.pencolor("black") 
turtle.fillcolor("red") 
#绘制五角星#
turtle.begin_fill()
for _ in range(5): 
    turtle.forward(200) 
    turtle.right(144)  
turtle.end_fill() 
time.sleep(1)
turtle.mainloop()

 

posted @ 2020-03-15 15:16  程序小白007  阅读(326)  评论(0编辑  收藏  举报