turtle画太阳

 

 

from turtle import *
hideturtle()
for i in range(12):
    color("red")
    circle(120, 30)
    color("yellow")
    begin_fill()
    right(60)
    fd(80)
    right(60)
    fd(80)
    right(120)
    fd(80)
    right(60)
    fd(80)
    right(60)
    end_fill()
done()
posted @ 2021-08-01 15:36  Hi,小董先生  阅读(258)  评论(0)    收藏  举报