Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-4-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
cbab89cf
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
32813c95
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
diy.py
diy1.py
diy.py
View file @
cbab89cf
...
...
@@ -4,7 +4,7 @@ screen=turtle.Screen()
screen
.
bgcolor
(
"light blue"
)
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的气球"
)
lovesize
=
int
(
len
)
len
=
10
0
len
=
9
0
pen
.
pendown
()
pen
.
pensize
(
5
)
pen
.
pencolor
(
"blue"
)
...
...
@@ -16,7 +16,7 @@ pen.circle(len,180)
pen
.
forward
(
2
*
len
)
turtle
.
done
()
pen
=
turtle
.
Pen
()
pen
.
goto
(
100
,
-
10
0
)
pen
.
goto
(
100
,
0
)
pen
.
write
(
"你好
\n
洛伊."
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
pen
.
penup
()
...
...
This diff is collapsed.
Click to expand it.
diy1.py
View file @
cbab89cf
...
...
@@ -2,17 +2,21 @@ import turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的气球"
)
lovesize
=
int
(
len
)
len
=
90
pen
.
pendown
()
pen
.
pensize
(
5
)
pen
.
pencolor
(
"b
i
ue"
)
pen
.
pencolor
(
"b
l
ue"
)
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
circle
(
50
,
180
)
pen
.
forward
(
2
*
len
)
pen
.
circle
(
len
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
forward
(
100
)
pen
.
write
(
"huhdhehe"
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
circle
(
len
,
180
)
pen
.
forward
(
2
*
len
)
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
.
goto
(
100
,
0
)
pen
.
penup
()
pen
.
write
(
"huhdhehe"
,
font
=
(
"Times"
,
30
,
"normal"
))
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