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
3d89da32
authored
Feb 21, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c9fe30ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
1.py
1.py
View file @
3d89da32
import
turtle
import
turtle
# Pen=turtle.Pen()
Pen
=
turtle
.
Pen
()
# Pen.write("春晓\n春眠不觉晓\n处处蚊子咬\n夜来大狗熊\n花落找不找\n",font=("Times",20,"normal"))
Screen
=
turtle
.
Screen
()
# Pen.hideturtle()
Screen
.
bgcolor
(
"blue"
)
# turtle.done()
Pen
.
penup
()
Pen
.
goto
(
100
,
-
100
)
Pen
.
write
(
"春晓
\n
春眠不觉晓
\n
处处蚊子咬
\n
夜来大狗熊
\n
花落找不找
\n
"
,
font
=
(
"Times"
,
20
,
"normal"
))
Pen
.
hideturtle
()
Pen1
=
turtle
.
Pen
()
Pen1
=
turtle
.
Pen
()
Pen1
.
pencolor
(
"red"
)
Pen1
.
pencolor
(
"red"
)
Pen1
.
pensize
(
5
)
Pen1
.
pensize
(
5
)
Pen1
.
left
(
45
)
Pen1
.
left
(
45
)
Pen1
.
forward
(
100
)
len
=
Screen
.
textinput
(
"提示"
,
"你想要多大的"
)
Pen1
.
circle
(
50
,
180
)
lovesize
=
int
(
len
)
Pen1
.
forward
(
2
*
lovesize
)
Pen1
.
circle
(
lovesize
,
180
)
Pen1
.
right
(
90
)
Pen1
.
right
(
90
)
Pen1
.
circle
(
50
,
180
)
Pen1
.
circle
(
lovesize
,
180
)
Pen1
.
forward
(
100
)
Pen1
.
forward
(
2
*
lovesize
)
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