用python画五角星

import turtle
turtle.setup(500,500)
turtle.bgcolor("white")
turtle.pensize(3)
turtle.color("red")
turtle.begin_fill()
for _ in range(5):
turtle.forward(200)
turtle.right(144)
turtle.end_fill()
turtle.hideturtle()
turtle.done()

posted @ 2025-02-24 16:32  鳞*  阅读(15)  评论(0)    收藏  举报