不多说,直接上代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import turtle as t

t.setup(800, 800, 0, 0)
t.pensize(1.5)
t.pu()
t.goto(0,-300)
t.pd()

t.fillcolor("black")
t.begin_fill()
t.circle(300, -180)
t.circle(150, -180)
t.circle(150, -180)
t.end_fill()

t.circle(-300, -180)

t.fillcolor("white")
t.begin_fill()
t.pu()
t.goto(0, 120)
t.pd()
t.circle(37.5)
t.end_fill()

t.fillcolor("black")
t.begin_fill()
t.pu()
t.goto(0, -120)
t.pd()
t.circle(-37.5)
t.end_fill()

主要是运用turtle插件,研究下,自己结婚的时候不会被难住了。