利用turtle库绘制
代码:
from
turtle
import
*
def
go
(
x
,
y
)
:
penup
(
)
goto
(
x
,
y
)
pendown
(
)
def
draw_firstname
(
)
:
seth
(
-
90
)
fd
(
150
)
#seth()
circle
(
-
700
,
23
)
penup
(
)
goto
(
-
500
,
100
)
pendown
(
)
seth
(
0
)
fd
(
300
)
seth
(
-
90
)
fd
(
430
)
seth
(
140
)
fd
(
80
)
penup
(
)
goto
(
-
400
,
15
)
pendown
(
)
seth
(
0
)
fd
(
100
)
penup
(
)
goto
(
-
350
,
50
)
pendown
(
)
seth
(
-
90
)
fd
(
90
)
penup
(
)
seth
(
180
)
fd
(
70
)
pendown
(
)
seth
(
0
)
fd
(
140
)
seth
(
90
)
penup
(
)
goto
(
-
420
,
-
150
)
fd
(
50
)
pendown
(
)
seth
(
-
90
)
fd
(
140
)
seth
(
0
)
fd
(
5
)
seth
(
70
)
pensize
(
5
)
goto
(
-
400
,
-
100
)
pensize
(
20
)
seth
(
0
)
fd
(
120
)
angle
=
0
for
i
in
range
(
2
)
:
angle
-=
90
seth
(
angle
)
fd
(
140
)
def
draw_secondname
(
)
:
penup
(
)
goto
(
-
40
,
50
)
pendown
(
)
seth
(
0
)
fd
(
200
)
go
(
60
,
50
)
seth
(
-
93
)
fd
(
301
)
go
(
-
15
,
-
100
)
seth
(
0
)
fd
(
150
)
go
(
-
70
,
-
250
)
fd
(
260
)
penup
(
)
seth
(
140
)
fd
(
130
)
pendown
(
)
seth
(
-
40
)
fd
(
80
)
pencolor
(
"violet"
)
go
(
300
,
80
)
seth
(
-
65
)
circle
(
-
350
,
60
)
pensize
(
5
)
goto
(
420
,
20
)
pensize
(
20
)
#go(420,20)
seth
(
-
90
)
fd
(
220
)
pensize
(
5
)
goto
(
540
,
100
)
pensize
(
20
)
#go(540,100)
fd
(
440
)
def
draw_abb
(
)
:
go
(
-
470
,
350
)
#8A2BE2
pencolor
(
(
138
,
43
,
226
)
)
seth
(
-
2
)
fd
(
200
)
seth
(
-
135
)
fd
(
250
)
seth
(
-
2
)
fd
(
200
)
#1C86EE
pencolor
(
(
28
,
134
,
238
)
)
go
(
-
20
,
350
)
seth
(
-
45
)
fd
(
100
)
go
(
120
,
350
)
seth
(
-
135
)
fd
(
100
)
seth
(
-
94
)
fd
(
145
)
#19197A
pencolor
(
(
25
,
25
,
112
)
)
go
(
480
,
320
)
seth
(
140
)
circle
(
100
,
240
)
setup
(
1400
,
1400
,
0
,
0
)
penup
(
)
goto
(
-
500
,
100
)
#fd(-250)
pendown
(
)
pensize
(
20
)
speed
(
0
)
colormode
(
255
)
pencolor
(
(
151
,
255
,
255
)
)
draw_firstname
(
)
pencolor
(
"purple"
)
draw_secondname
(
)
draw_abb
(
)