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
5477ba04
authored
Oct 15, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
61370bae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
diy.py
diy1.py
diy.py
View file @
5477ba04
...
@@ -4,11 +4,31 @@ screen=turtle.Screen()
...
@@ -4,11 +4,31 @@ screen=turtle.Screen()
screen
.
bgcolor
(
"light blue"
)
screen
.
bgcolor
(
"light blue"
)
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的气球"
)
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的气球"
)
lovesize
=
int
(
len
)
lovesize
=
int
(
len
)
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
len
=
screen
.
textinput
(
"100"
,
"100"
)
len
=
int
(
len
)
pen
=
turtle
.
Pen
()
pen
.
write
(
"你好
\n
奥里给."
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
len
=
60
pen
.
penup
()
pen
.
pendown
()
pen
.
pensize
(
5
)
pen
.
pencolor
(
"blue"
)
pen
.
left
(
45
)
pen
.
forward
(
2
*
len
)
pen
.
circle
(
len
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
len
,
180
)
pen
.
forward
(
2
*
len
)
turtle
.
done
()
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
pen
.
write
(
"你好
\n
洛伊pppppp11."
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"你好
\n
洛伊."
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
pen
.
hideturtle
()
pen
.
penup
()
pen
.
penup
()
pen
.
goto
(
100
,
100
)
pen
.
pendown
()
pen
.
pendown
()
pen
.
pensize
(
5
)
pen
.
pensize
(
5
)
pen
.
pencolor
(
"blue"
)
pen
.
pencolor
(
"blue"
)
...
...
diy1.py
View file @
5477ba04
...
@@ -3,7 +3,7 @@ screen=turtle.Screen()
...
@@ -3,7 +3,7 @@ screen=turtle.Screen()
screen
.
bgcolor
(
"light blue"
)
screen
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
pen
.
pensize
(
5
)
pen
.
pensize
(
5
)
pen
.
pencolor
(
"
red
"
)
pen
.
pencolor
(
"
biue
"
)
pen
.
left
(
45
)
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
forward
(
100
)
pen
.
circle
(
50
,
180
)
pen
.
circle
(
50
,
180
)
...
...
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