import turtle as t
t.setup(650,350,200,200)
t.penup()
t.fd(-250)
t.pendown()
t.pensize(25)
t.pencolor("purple")
t.seth(-40)
for i in range(4):
t.circle(40,80)
t.circle(-40,80)
t.circle(40,80/2)
t.fd(40)
t.circle(16,180)
t.fd(40*2/3)
t.down()
from turtle import *
color('red','red')
begin_fill()
for i in range(5):
fd(200)
rt(144)
end_fill()
done()


本文介绍了如何使用Python的Turtle模块绘制复杂的图形,包括一个紫色的螺旋形图案和一个红色的五角星。通过调整Turtle的方法和参数,展示了Turtle在图形艺术创作上的灵活性和潜力。
571

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



