#1.8 draw_sunflower
#coding = uft-8
from turtle import *
import time
color("red","yellow")
#定义画笔颜色
begin_fill()
#开始绘制图形
while True:
forward(200)
#向前回执直线
right(170)
#旋转画笔方向
if abs(pos()) < 1:
break
#pos()为画笔坐标,如果画笔回到坐标原点,结束循环
end_fill()
done()
#1.8 draw_sunflower
最新推荐文章于 2023-03-16 23:06:38 发布