Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-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
9f39b3ad
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bdddb4cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
123.py
123.py
View file @
9f39b3ad
...
@@ -3,18 +3,20 @@ scr=turtle.Screen()
...
@@ -3,18 +3,20 @@ scr=turtle.Screen()
scr
.
bgcolor
(
"pink"
)
scr
.
bgcolor
(
"pink"
)
p
=
turtle
.
Pen
()
p
=
turtle
.
Pen
()
p
.
penup
()
p
.
penup
()
p
.
goto
(
100
,
-
10
0
)
p
.
goto
(
0
,
-
15
0
)
p
.
write
(
"你是个SB
\n
SB
\n
就是你!"
,
font
=
(
"Times"
,
2
0
,
"normal"
))
p
.
write
(
"你是个SB
\n
SB
就是你!"
,
font
=
(
"Times"
,
5
0
,
"normal"
))
p
.
hideturtle
()
p
.
hideturtle
()
#画爱心
#画爱心
a
=
scr
.
textinput
(
"提示"
,
"你想要多大的爱心:"
)
len
=
int
(
a
)
p1
=
turtle
.
Pen
()
p1
=
turtle
.
Pen
()
p1
.
pensize
(
5
)
p1
.
pensize
(
5
)
p1
.
pencolor
(
"red"
)
p1
.
pencolor
(
"red"
)
p1
.
left
(
45
)
p1
.
left
(
45
)
p1
.
forward
(
100
)
p1
.
forward
(
len
*
2
)
p1
.
circle
(
50
,
180
)
p1
.
circle
(
len
,
180
)
p1
.
right
(
90
)
p1
.
right
(
90
)
p1
.
circle
(
50
,
180
)
p1
.
circle
(
len
,
180
)
p1
.
forward
(
100
)
p1
.
forward
(
len
*
2
)
p1
.
hideturtle
()
p1
.
hideturtle
()
turtle
.
done
()
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