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
2e762f3b
authored
May 06, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7d8213a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
diy1.py
diy1.py
View file @
2e762f3b
...
...
@@ -2,6 +2,8 @@
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light yellow"
)
len
=
screen
.
textinput
(
"提示"
,
"爱心大小"
)
l
=
float
(
len
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
0
)
...
...
@@ -17,11 +19,11 @@ pen1.left(45)
#8.画右下角的边,长100(直径)
pen1
.
forward
(
100
)
#9.画半圆circle() 半径为50
pen1
.
circle
(
50
,
180
)
pen1
.
circle
(
l
,
180
)
#10.右转90
pen1
.
right
(
90
)
#11.画半圆circle() 半径为50 ,夹角为180
pen1
.
circle
(
50
,
180
)
pen1
.
circle
(
l
,
180
)
#12.画左下角的边,长100(直径)
pen1
.
forward
(
100
)
pen1
.
hideturtle
()
...
...
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