画太极图

 1 from turtle import*
 2 color('black','black')
 3 begin_fill()
 4 circle(-50,180)
 5 circle(50,180)
 6 circle(100,180)
 7 pu()
 8 left(90)
 9 fd(40)
10 right(90)
11 circle(10)
12 end_fill()
13 color('black','white')
14 left(90)
15 fd(100)
16 pd()
17 right(90)
18 begin_fill()
19 circle(10)
20 end_fill()
21 pu()
22 home()
23 pd()
24 circle(-100,-180)
25 hideturtle()

 

posted on 2020-03-17 20:21  B·W  阅读(190)  评论(0编辑  收藏  举报