摘要:
方法一>>函数封装绘制菱形: import turtle as t def draw(): t.hideturtle() angles=[0,30,60,90,120,150,180,210,240,270,300,330,360] l=60*(3**0.5) colors=["yellow"] t 阅读全文
posted @ 2022-10-14 23:33
Selina风乎舞雩
阅读(45)
评论(0)
推荐(0)
摘要:
初始样式: import turtle as t t.begin_fill() t.fillcolor("red") t.seth(0) #改变方向朝向0° t.forward(180) t.right(90) #方向顺时针旋转90° t.circle(-100,45) #顺时针为-,逆时针为+,后 阅读全文
posted @ 2022-10-14 22:33
Selina风乎舞雩
阅读(44)
评论(0)
推荐(0)
摘要:
import turtle as t t.speed(1) #设置执行每一次时间为1秒 t.fillcolor("red") #设置填充颜色为红色 t.begin_fill() #设置填充的起始位置 t.ht() #隐藏画笔 t.fd(188) #当前方向走188像素forward t.lt(90) 阅读全文
posted @ 2022-10-14 19:46
Selina风乎舞雩
阅读(31)
评论(0)
推荐(0)

浙公网安备 33010602011771号