几何图形

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()

 

posted @ 2020-03-22 22:06  xieyvhua  阅读(195)  评论(0)    收藏  举报