import turtle
import time
turtle.pensize(5)
turtle.color(“brown”,“red”)
turtle.begin_fill()
for i in range(5):
turtle.forward(200)
turtle.right(144)
turtle.end_fill()
time.sleep(2)
turtle.mainloop()
Python : Turtle绘图-五角星(代码)
最新推荐文章于 2024-04-07 16:50:08 发布