Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson10-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
61a17688
authored
Sep 23, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
ae24077b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
14 deletions
diy1.py
diy1.py
View file @
61a17688
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
pen
.
speed
(
"fast"
)
pen
.
hideturtle
()
screen
.
bgcolor
(
"black"
)
i
=
0
while
i
<
135
:
pen
.
pencolor
(
"pink"
)
pen
.
penup
()
pen
.
goto
(
0
,
0
)
pen
.
forward
(
200
)
pen
.
pendown
()
pen
.
circle
(
100
)
pen
.
left
(
2
)
i
+=
1
#画脸
pen
.
penup
()
pen
.
goto
(
0
,
-
200
)
pen
.
pendown
()
pen
.
circle
(
200
)
#画左眼
pen
.
penup
()
pen
.
goto
(
-
100
,
50
)
pen
.
pendown
()
pen
.
fillcolor
(
"blue"
)
pen
.
begin_fill
()
pen
.
circle
(
20
)
pen
.
end_fill
()
#画右眼
pen
.
penup
()
pen
.
goto
(
100
,
50
)
pen
.
pendown
()
pen
.
fillcolor
(
"blue"
)
pen
.
begin_fill
()
pen
.
circle
(
20
)
pen
.
end_fill
()
#画鼻子
pen
.
penup
()
pen
.
goto
(
0
,
50
)
pen
.
pendown
()
pen
.
circle
(
-
50
,
steps
=
3
)
#画嘴巴
pen
.
penup
()
pen
.
goto
(
-
150
,
-
70
)
pen
.
pendown
()
pen
.
goto
(
0
,
-
170
)
pen
.
goto
(
150
,
-
70
)
turtle
.
done
()
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