Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_DIY1
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
d0a1bc44
authored
May 02, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b4caab9e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
diy1.py
p.py
diy1.py
View file @
d0a1bc44
#导入模块
import
turtle
#创建一支画笔
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"pink"
)
len
=
screen
.
textinput
(
"提示"
,
"你想画多大的爱心"
)
love
=
int
(
len
)
#创建变量len表示圆的半径
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的爱心"
)
love
=
int
(
len
)
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"春眠不觉晓,
\n
处处闻啼鸟"
,
font
=
(
"Times"
,
20
,
"normal"
))
...
...
p.py
View file @
d0a1bc44
import
turtle
s
=
turtle
.
Screen
()
s
.
textinput
(
"姓名框"
,
"你叫什么名字"
)
s
.
textinput
(
"姓名框"
,
"你叫什么名字
?
"
)
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