Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-3_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
d26fe5e4
authored
4 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b597fc6d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
diy1.py
diy1.py
View file @
d26fe5e4
# 利用write()帮助悟空给诺依回信吧~
# 利用write()帮助悟空给诺依回信吧~
import
turtle
import
turtle
p
=
turtle
.
Pen
()
p
=
turtle
.
Pen
()
p
.
write
(
"谢谢悟空。
\n
"
,
font
=
(
"Times"
,
20
,
"Normal"
))
p
.
write
(
"谢谢悟空。
"
font
=
(
"Times"
,
20
,
"Normal"
))
p
.
hideturtle
()
p
.
hideturtle
()
p1
=
turtle
.
Pen
()
p1
=
turtle
.
Pen
()
len
=
50
len
=
50
p1
.
pencolor
(
"red"
)
p1
.
pencolor
(
"red"
)
p1
.
pensize
(
5
)
p1
.
pensize
(
5
)
p1
.
left
(
45
)
p1
.
left
(
45
)
p1
.
forward
(
2
*
len
)
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的爱心呀?"
)
p1
.
circle
(
len
,
180
)
lovesize
=
int
(
len
)
p1
.
left
(
45
)
p1
.
forward
(
2
*
lovesize
)
p1
.
forward
(
2
*
lovesize
)
p1
.
circle
(
lovesize
,
180
)
p1
.
right
(
90
)
p1
.
right
(
90
)
p1
.
circle
(
l
en
,
180
)
p1
.
circle
(
l
ovesize
,
180
)
p1
.
forward
(
2
*
l
en
)
p1
.
forward
(
2
*
l
ovesize
)
p1
.
hideturtle
()
p1
.
hideturtle
()
turtle
.
done
()
turtle
.
done
()
p2
=
turtle
.
Pen
()
p2
=
turtle
.
Pen
()
...
...
This diff is collapsed.
Click to expand it.
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