import turtle
turtle.pensize(4)
turtle.pencolor("yellow")
turtle.fillcolor("red")
turtle.begin_fill()
turtle.penup()
turtle.goto(-200, 0)
turtle.pendown()
turtle.speed(5)
for i in range(5):
turtle.forward(200)
turtle.right(144)
turtle.end_fill()
————————————————
python画五角星
最新推荐文章于 2024-09-11 14:46:11 发布