五角星

1 import turtle
2 turtle.setup(600,550,200,200)
3 turtle.pensize(1)
4 turtle.fillcolor("red")
5 turtle.begin_fill()
6 for i in range(5):
7     turtle.fd(200)
8     turtle.left(216)
9 turtle.end_fill()

 

posted @ 2020-03-11 15:49  贾诩来编程  阅读(114)  评论(0编辑  收藏  举报