Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-2_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
fb634054
authored
Apr 18, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a759773f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
diy1.py
quiz1.py
diy1.py
View file @
fb634054
...
...
@@ -4,20 +4,22 @@ screen=turtle.Screen()
screen
.
bgcolor
(
"light pink"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
1
9
0
,
-
250
)
pen
.
write
(
"
游子吟
\n
[唐]孟郊
\n
慈母手中线,
\n
游子身上衣。
\n
临行密密缝,
\n
意恐迟迟归。
\n
谁言寸草心,
\n
报得三春晖。"
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
goto
(
1
8
0
,
-
250
)
pen
.
write
(
"
游子吟
\n
[唐]孟郊
\n
慈母手中线,
\n
游子身上衣。
\n
临行密密缝,
\n
意恐迟迟归。
\n
谁言寸草心,
\n
报得三春晖。"
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
hideturtle
()
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的爱心:"
)
lovesize
=
int
(
len
)
pen1
=
turtle
.
Pen
()
pen1
.
pencolor
(
"
red
"
)
pen1
.
pencolor
(
"
green
"
)
pen1
.
pensize
(
10
)
pen1
.
fillcolor
(
"red"
)
pen1
.
begin_fill
()
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
pen1
.
circle
(
50
,
180
)
pen1
.
forward
(
lovesize
*
2
)
pen1
.
circle
(
lovesize
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
pen1
.
forward
(
100
)
pen1
.
circle
(
lovesize
,
180
)
pen1
.
forward
(
lovesize
*
2
)
pen1
.
end_fill
()
pen1
.
hideturtle
()
turtle
.
done
()
quiz1.py
0 → 100644
View file @
fb634054
import
turtle
screen
=
turtle
.
Screen
()
screen
.
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