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
12f429bf
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
6c0fd82a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
diy1.py
diy1.py
View file @
12f429bf
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
turtle
import
turtle
screen
=
turtle
.
Screen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
screen
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
goto
(
100
,
-
100
)
...
@@ -11,7 +12,8 @@ pen.hideturtle()
...
@@ -11,7 +12,8 @@ pen.hideturtle()
penl
=
turtle
.
Pen
()
penl
=
turtle
.
Pen
()
penl
.
pencolor
(
"red"
)
penl
.
pencolor
(
"red"
)
penl
.
pensize
(
5
)
penl
.
pensize
(
5
)
len
=
60
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的爱心?”)
lovesizel=int(len)
penl.left(45)
penl.left(45)
penl.forward(2*len)
penl.forward(2*len)
penl.circle(len,180)
penl.circle(len,180)
...
...
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