Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-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
865677bd
authored
May 10, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e027d6c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
diy1.py
diy1.py
View file @
865677bd
# 利用write()帮助悟空给诺依回信吧~
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
len
=
screen
.
textinput
(
"
爱心大小"
,
"爱心
大小?"
)
len
=
screen
.
textinput
(
"
??大小"
,
"??
大小?"
)
lovesize
=
int
(
len
)
pen2
=
turtle
.
Pen
()
pen2
.
goto
(
0
,
200
)
pen2
.
pencolor
(
"red"
,
font
)
pen2
.
write
(
"贺卡"
)
pen
=
turtle
.
Pen
()
pen
.
write
(
"
山外青山楼外楼,
\n
青松教育使人愁。
\n
青松熏得家长醉,
\n
只把孩子当虚无!"
,
font
=
(
"Times"
,
20
,
"normal"
)
)
pen
.
write
(
"
妈妈:
\n
祝您节日快乐,越来越美丽,
\n
越来越年轻,越来越快乐!
\n
王林翰&王亦暖"
,
font
=
(
"Times"
,
20
,
"normal"
)
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
penup
()
pen1
.
goto
(
-
1
00
,
100
)
pen1
.
goto
(
-
1
50
,
-
100
)
pen1
.
pendown
()
pen1
.
pencolor
(
"red"
)
pen1
.
fillcolor
(
"red"
)
...
...
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