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
e6415926
authored
Oct 22, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
fabfa353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
diy.py
diy.py
View file @
e6415926
...
...
@@ -4,17 +4,9 @@ screen=turtle.Screen()
screen
.
bgcolor
(
"light blue"
)
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的气球"
)
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
)
...
...
@@ -38,4 +30,14 @@ pen.circle(lovesize,180)
pen
.
right
(
90
)
pen
.
circle
(
lovesize
,
180
)
pen
.
forward
(
2
*
lovesize
)
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
len
=
screen
.
textinput
(
"100"
,
"100"
)
len
=
int
(
len
)
pen
=
turtle
.
Pen
()
pen
.
goto
(
100
,
-
100
)
pen
.
color
(
"blue"
)
pen
.
write
(
"你好
\n
搜索."
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
turtle
.
done
()
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