## **绘制风车**
import turtle as t
t.pensize(1)
t.pencolor("purple")
for i in range(4):
t.seth(i*90)
t.fd(150)
t.seth(90*(i+1))
t.circle(150,-45)
t.goto(0,0)
效果图
2020年2月25日
使用Python的turtle库,绘制了一个紫色的风车图案。通过循环设置画笔方向和长度,结合圆弧绘制技巧,实现了风车叶片的动态效果。
## **绘制风车**
import turtle as t
t.pensize(1)
t.pencolor("purple")
for i in range(4):
t.seth(i*90)
t.fd(150)
t.seth(90*(i+1))
t.circle(150,-45)
t.goto(0,0)
效果图
2020年2月25日

被折叠的 条评论
为什么被折叠?