Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson12-3
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a03ec5c2
authored
Feb 11, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
a4e7b396
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
285 additions
and
0 deletions
a.py
nianhua.py
a.py
0 → 100644
View file @
a03ec5c2
import
turtle
as
t
t
.
speed
(
10
)
t
.
fillcolor
(
"red"
)
t
.
begin_fill
()
t
.
penup
()
t
.
goto
(
0
,
-
100
)
t
.
pendown
()
t
.
left
(
45
)
for
i
in
range
(
4
):
t
.
forward
(
200
)
t
.
left
(
90
)
t
.
end_fill
()
t
.
pencolor
(
"yellow"
)
t
.
penup
()
t
.
setheading
(
90
)
t
.
forward
(
10
)
t
.
pendown
()
t
.
right
(
45
)
for
i
in
range
(
4
):
t
.
forward
(
185
)
t
.
left
(
90
)
def
fu
():
t
.
pensize
(
15
)
t
.
pencolor
(
"black"
)
t
.
penup
()
t
.
goto
(
25
,
-
20
)
t
.
pendown
()
t
.
setheading
(
135
)
t
.
forward
(
10
)
t
.
penup
()
t
.
goto
(
50
,
15
)
t
.
setheading
(
190
)
t
.
pendown
()
t
.
forward
(
30
)
t
.
right
(
135
)
t
.
forward
(
65
)
t
.
backward
(
40
)
t
.
setheading
(
90
)
t
.
forward
(
65
)
t
.
backward
(
65
)
t
.
setheading
(
135
)
t
.
forward
(
20
)
t
.
penup
()
t
.
goto
(
-
50
,
-
15
)
t
.
pendown
()
t
.
setheading
(
10
)
t
.
forward
(
50
)
t
.
penup
()
t
.
goto
(
-
40
,
5
)
t
.
pendown
()
t
.
forward
(
35
)
t
.
left
(
90
)
t
.
forward
(
25
)
t
.
left
(
88
)
t
.
forward
(
35
)
t
.
left
(
80
)
t
.
forward
(
25
)
t
.
pensize
(
10
)
t
.
penup
()
t
.
goto
(
-
55
,
50
)
t
.
pendown
()
t
.
setheading
(
-
10
)
t
.
circle
(
100
,
30
)
t
.
left
(
60
)
t
.
circle
(
90
,
30
)
t
.
left
(
75
)
t
.
pensize
(
13
)
t
.
forward
(
45
)
t
.
left
(
65
)
t
.
pensize
(
10
)
t
.
circle
(
90
,
30
)
t
.
setheading
(
-
10
)
t
.
circle
(
100
,
15
)
t
.
setheading
(
90
)
t
.
forward
(
40
)
t
.
backward
(
15
)
t
.
pensize
(
13
)
t
.
setheading
(
10
)
t
.
forward
(
10
)
t
.
backward
(
20
)
t
.
hideturtle
()
fu
()
t
.
done
()
\ No newline at end of file
nianhua.py
0 → 100644
View file @
a03ec5c2
import
turtle
as
t
t
.
fillcolor
(
"red"
)
t
.
begin_fill
()
#腹部
t
.
right
(
40
)
t
.
circle
(
150
,
90
)
#腹部 结束
t
.
penup
()
#嘴
t
.
goto
(
208
,
40
)
t
.
pendown
()
t
.
setheading
(
0
)
t
.
forward
(
10
)
t
.
circle
(
-
7
,
180
)
t
.
forward
(
10
)
t
.
backward
(
10
)
t
.
right
(
180
)
t
.
circle
(
-
4
,
180
)
t
.
forward
(
10
)
#嘴 结束
t
.
penup
()
#身体
t
.
goto
(
208
,
40
)
t
.
pendown
()
t
.
setheading
(
120
)
t
.
circle
(
120
,
120
)
#身体 结束
t
.
penup
()
#尾巴
t
.
goto
(
-
18
,
40
)
t
.
pendown
()
t
.
left
(
45
)
t
.
circle
(
10
,
160
)
t
.
penup
()
t
.
goto
(
-
18
,
40
)
t
.
pendown
()
t
.
left
(
40
)
t
.
forward
(
35
)
t
.
right
(
35
)
t
.
forward
(
10
)
t
.
circle
(
5
,
180
)
t
.
forward
(
10
)
t
.
right
(
40
)
t
.
circle
(
27
,
90
)
t
.
penup
()
t
.
right
(
45
)
t
.
forward
(
35
)
t
.
left
(
130
)
t
.
pendown
()
t
.
circle
(
23
,
100
)
t
.
penup
()
t
.
left
(
133
)
t
.
forward
(
35
)
t
.
pendown
()
t
.
right
(
65
)
t
.
circle
(
20
,
120
)
t
.
circle
(
10
,
90
)
t
.
goto
(
-
8
,
-
8
)
t
.
circle
(
-
13
,
60
)
#尾巴 结束
t
.
end_fill
()
t
.
fillcolor
(
"red"
)
t
.
begin_fill
()
t
.
end_fill
()
t
.
fillcolor
(
"white"
)
t
.
begin_fill
()
t
.
penup
()
#眼睛
t
.
goto
(
190
,
40
)
t
.
pendown
()
t
.
setheading
(
90
)
t
.
circle
(
10
)
t
.
end_fill
()
t
.
fillcolor
(
"black"
)
t
.
begin_fill
()
t
.
circle
(
8
)
t
.
end_fill
()
t
.
goto
(
187
,
43
)
t
.
fillcolor
(
"white"
)
t
.
begin_fill
()
t
.
circle
(
3
)
t
.
end_fill
()
#眼睛 结束
t
.
penup
()
#鱼脸
t
.
goto
(
160
,
87
)
t
.
pendown
()
t
.
left
(
135
)
t
.
circle
(
80
,
30
)
t
.
right
(
40
)
t
.
circle
(
40
,
140
)
#鱼脸 结束
def
banyuan
(
x
,
y
):
#鱼鳞
t
.
penup
()
t
.
goto
(
x
,
y
)
t
.
pendown
()
t
.
setheading
(
180
)
t
.
circle
(
-
10
,
180
)
banyuan
(
120
,
65
)
banyuan
(
110
,
39
)
banyuan
(
90
,
49
)
banyuan
(
70
,
57
)
banyuan
(
48
,
38
)
banyuan
(
68
,
27
)
banyuan
(
88
,
18
)
banyuan
(
28
,
25
)
banyuan
(
46
,
10
)
banyuan
(
65
,
-
5
)
#鱼鳞结束
t
.
fillcolor
(
"yellow"
)
t
.
penup
()
#鱼鳍1
t
.
goto
(
123
,
10
)
t
.
pendown
()
t
.
begin_fill
()
t
.
setheading
(
200
)
t
.
circle
(
-
40
,
60
)
t
.
circle
(
-
5
,
90
)
t
.
forward
(
10
)
t
.
circle
(
-
5
,
90
)
t
.
right
(
22
)
t
.
circle
(
45
,
43
)
t
.
right
(
175
)
t
.
forward
(
30
)
t
.
end_fill
()
#鱼鳍1 结束
t
.
penup
()
#鱼鳍2
t
.
goto
(
30
,
73
)
t
.
pendown
()
t
.
begin_fill
()
t
.
setheading
(
90
)
t
.
circle
(
30
,
90
)
t
.
setheading
(
30
)
t
.
circle
(
-
120
,
67
)
t
.
end_fill
()
t
.
penup
()
t
.
goto
(
55
,
78
)
t
.
pendown
()
t
.
setheading
(
95
)
t
.
circle
(
50
,
35
)
t
.
penup
()
t
.
goto
(
80
,
85
)
t
.
pendown
()
t
.
right
(
25
)
t
.
circle
(
40
,
30
)
t
.
penup
()
t
.
goto
(
103
,
88
)
t
.
pendown
()
t
.
right
(
20
)
t
.
circle
(
30
,
25
)
#鱼鳍2 结束
t
.
penup
()
#鱼鳍3
t
.
goto
(
70
,
-
33
)
t
.
pendown
()
t
.
begin_fill
()
t
.
setheading
(
210
)
t
.
circle
(
-
60
,
35
)
t
.
circle
(
-
5
,
90
)
t
.
circle
(
30
,
30
)
t
.
penup
()
t
.
goto
(
70
,
-
33
)
t
.
pendown
()
t
.
setheading
(
195
)
t
.
circle
(
-
75
,
25
)
t
.
end_fill
()
#鱼鳍3 结束
t
.
penup
()
#鱼鳍4
t
.
goto
(
130
,
-
33
)
t
.
pendown
()
t
.
setheading
(
-
100
)
t
.
begin_fill
()
t
.
circle
(
-
25
,
90
)
t
.
forward
(
5
)
t
.
right
(
115
)
t
.
forward
(
27
)
t
.
right
(
53
)
t
.
penup
()
t
.
forward
(
10
)
t
.
pendown
()
t
.
right
(
105
)
t
.
circle
(
-
30
,
30
)
t
.
right
(
75
)
t
.
penup
()
t
.
forward
(
10
)
t
.
pendown
()
t
.
left
(
45
)
t
.
forward
(
10
)
t
.
right
(
135
)
t
.
forward
(
15
)
t
.
end_fill
()
#鱼鳍4 结束
t
.
penup
()
#条纹1
t
.
goto
(
-
3
,
0
)
t
.
pendown
()
t
.
setheading
(
90
)
t
.
forward
(
3
)
t
.
circle
(
-
3
,
90
)
t
.
setheading
(
50
)
t
.
circle
(
18
,
90
)
t
.
circle
(
-
3
,
75
)
t
.
forward
(
3
)
#条纹1 结束
t
.
penup
()
t
.
goto
(
-
53
,
48
)
t
.
pendown
()
t
.
setheading
(
-
45
)
t
.
circle
(
40
,
40
)
t
.
penup
()
t
.
goto
(
-
35
,
15
)
t
.
pendown
()
t
.
setheading
(
0
)
t
.
forward
(
20
)
t
.
penup
()
t
.
goto
(
-
43
,
-
8
)
t
.
pendown
()
t
.
setheading
(
22
)
t
.
forward
(
20
)
t
.
hideturtle
()
t
.
done
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment