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
45f241ba
authored
4 months ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
c816b9b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
0 deletions
p.py
p.py
0 → 100644
View file @
45f241ba
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
love
=
screen
.
textinput
(
"臭宝"
,
"你想要粉色爱心吗,输入一个数字"
)
i
=
int
(
love
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
-
100
,
100
)
pen
.
pendown
()
pen
.
pencolor
(
"pink"
)
pen
.
fillcolor
(
"pink"
)
pen
.
begin_fill
()
pen
.
left
(
135
)
pen
.
circle
(
i
,
180
)
pen
.
forward
(
2
*
i
)
pen
.
left
(
90
)
pen
.
forward
(
2
*
i
)
pen
.
circle
(
i
,
180
)
pen
.
end_fill
()
pen
.
penup
()
pen
.
goto
(
-
10
,
2
)
pen
.
pendown
()
pen
.
pencolor
(
"pink"
)
pen
.
fillcolor
(
"pink"
)
pen
.
begin_fill
()
pen
.
left
(
135
)
pen
.
circle
(
i
,
180
)
pen
.
forward
(
2
*
i
)
pen
.
left
(
90
)
pen
.
forward
(
2
*
i
)
pen
.
circle
(
i
,
180
)
pen
.
end_fill
()
pen
.
penup
()
pen
.
goto
(
-
100
,
-
100
)
pen
.
pendown
()
pen
.
pencolor
(
"pink"
)
pen
.
fillcolor
(
"pink"
)
pen
.
begin_fill
()
pen
.
left
(
135
)
pen
.
circle
(
i
,
180
)
pen
.
forward
(
2
*
i
)
pen
.
left
(
90
)
pen
.
forward
(
2
*
i
)
pen
.
circle
(
i
,
180
)
pen
.
end_fill
()
pen
.
penup
()
pen
.
goto
(
-
3
,
-
10
)
pen
.
pendown
()
pen
.
pencolor
(
"pink"
)
pen
.
fillcolor
(
"pink"
)
pen
.
begin_fill
()
pen
.
left
(
135
)
pen
.
circle
(
i
,
180
)
pen
.
forward
(
2
*
i
)
pen
.
left
(
90
)
pen
.
forward
(
2
*
i
)
pen
.
circle
(
i
,
180
)
pen
.
end_fill
()
pen
.
penup
()
pen
.
goto
(
15
,
30
)
pen
.
pendown
()
pen
.
pencolor
(
"pink"
)
pen
.
fillcolor
(
"pink"
)
pen
.
begin_fill
()
pen
.
left
(
135
)
pen
.
circle
(
i
,
180
)
pen
.
forward
(
2
*
i
)
pen
.
left
(
90
)
pen
.
forward
(
2
*
i
)
pen
.
circle
(
i
,
180
)
pen
.
end_fill
()
pen
.
penup
()
pen
.
goto
(
0
,
0
)
pen
.
write
(
"臭宝,爱老虎油"
,
font
=
(
"方正楷体"
,
30
,
"normal"
))
pen
.
hideturtle
()
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