Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_1
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
b47d14da
authored
Jan 12, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
024fb164
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
9 deletions
func.py
func.py
View file @
b47d14da
total
=
[]
while
True
:
unit
=
input
(
"请输入:"
)
if
unit
==
'q'
:
break
else
:
total
.
append
(
unit
)
print
(
total
)
\ No newline at end of file
import
turtle
# 设置画笔
t
=
turtle
.
Turtle
()
t
.
pensize
(
5
)
t
.
speed
(
1
)
# 画天线宝宝的身体
t
.
penup
()
t
.
goto
(
-
50
,
-
100
)
t
.
pendown
()
t
.
circle
(
100
)
# 画天线宝宝的脸
t
.
penup
()
t
.
goto
(
-
30
,
50
)
t
.
pendown
()
t
.
circle
(
30
)
# 画天线宝宝的眼睛
t
.
penup
()
t
.
goto
(
-
45
,
70
)
t
.
pendown
()
t
.
circle
(
5
)
t
.
penup
()
t
.
goto
(
-
15
,
70
)
t
.
pendown
()
t
.
circle
(
5
)
# 画天线宝宝的嘴巴
t
.
penup
()
t
.
goto
(
-
40
,
40
)
t
.
pendown
()
t
.
right
(
90
)
t
.
circle
(
40
,
180
)
# 画天线宝宝的天线
t
.
penup
()
t
.
goto
(
-
40
,
120
)
t
.
pendown
()
t
.
left
(
60
)
t
.
forward
(
50
)
t
.
right
(
120
)
t
.
forward
(
50
)
# 画天线宝宝的手
t
.
penup
()
t
.
goto
(
-
120
,
-
50
)
t
.
pendown
()
t
.
setheading
(
-
60
)
t
.
circle
(
100
,
120
)
t
.
penup
()
t
.
goto
(
20
,
-
50
)
t
.
pendown
()
t
.
setheading
(
60
)
t
.
circle
(
-
100
,
120
)
# 画天线宝宝的脚
t
.
penup
()
t
.
goto
(
-
80
,
-
180
)
t
.
pendown
()
t
.
setheading
(
-
30
)
t
.
circle
(
80
,
60
)
t
.
penup
()
t
.
goto
(
40
,
-
180
)
t
.
pendown
()
t
.
setheading
(
30
)
t
.
circle
(
-
80
,
60
)
# 完成绘制
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