Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_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
79bb6436
authored
a year ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bdff8400
c302079l843p219a8870/wx165663
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
diy3.py
diy3.py
View file @
79bb6436
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"akher~
/n iqlk~/n hewiqlk~/n hfek,ke~/n krlw"
,
font
=
(
"Times"
,
20
"normal"
))
pen
.
write
(
"akher~
\n
iqlk~/
\n
hewiqlk~/
\n
hfek,ke~/
\n
krlw"
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
pencolor
(
"r
a
d"
)
pen1
.
pencolor
(
"r
e
d"
)
pen1
.
pensize
(
5
)
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的爱心啊?"
)
lovesize
=
int
(
len
)
...
...
@@ -18,4 +22,5 @@ pen1.right(90)
pen1
.
circle
(
lovesize
,
180
)
pen1
.
forward
(
2
*
lovesize
)
pen1
.
hideturtle
()
turtle
.
down
()
\ No newline at end of file
turtle
.
done
()
\ No newline at end of file
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