import turtle as t
t.setup(650,350,300,300)
t.penup()
t.fd(-250)
t.pendown()
for i in range(4):
t.fd(200)
t.right(90)
t.penup()
t.fd(50)
t.right(90)
t.fd(100)
t.left(90)
t.pendown()
t.circle(50,360)
t.circle(-50,360)
t.penup()
t.fd(100)
t.pendown()
t.circle(50,360)
t.circle(-50,360)
t.left(90)
t.circle(50,360)
t.fd(50)
t.left(90)
for i in range(3):
t.fd(100)
t.left(90)
t.fd(50)
t.done()
原文:https://www.cnblogs.com/xieyuhua/p/12548771.html