绘制五角星代码

#高手代码
from turtle import *
color("red","yellow")
begin_fill()
hideturtle()
speed(1)
while True:
forward(200)
right(144)
if abs(pos())<1:
break
end_fill()
done()

#初学Python的代码

 

 

 
posted @ 2021-05-16 16:05  霓凰凤舞  阅读(1937)  评论(0)    收藏  举报