Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-5_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
f1c98b7c
authored
Jul 01, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e8046b0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
jk.py
jk.py
View file @
f1c98b7c
import
turtle
import
turtle
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
=
turtle
.
Screen
()
len
=
60
len
=
screen
.
textinput
(
"提示"
,
"要多大的呢?"
)
lovesize
=
int
(
len
)
screen
.
bgcolor
(
"light blue"
)
screen
.
bgcolor
(
"light blue"
)
pen
.
color
(
"red"
)
pen
.
color
(
"red"
)
pen
.
write
(
"死去元知万事空
\n
但悲不见九州同
\n
王师北定中原日
\n
家祭无忘告乃翁"
,
font
=
(
"Times"
,
40
,
"normal"
))
pen
.
write
(
"死去元知万事空
\n
但悲不见九州同
\n
王师北定中原日
\n
家祭无忘告乃翁"
,
font
=
(
"Times"
,
40
,
"normal"
))
...
@@ -12,10 +13,10 @@ pen1.penup()
...
@@ -12,10 +13,10 @@ pen1.penup()
pen1
.
goto
(
-
30
,
40
)
pen1
.
goto
(
-
30
,
40
)
pen1
.
pendown
()
pen1
.
pendown
()
pen1
.
left
(
45
)
pen1
.
left
(
45
)
pen1
.
forward
(
2
*
l
en
)
pen1
.
forward
(
2
*
l
ovesize
)
pen1
.
circle
(
l
en
,
180
)
pen1
.
circle
(
l
ovesize
,
180
)
pen1
.
right
(
90
)
pen1
.
right
(
90
)
pen1
.
circle
(
l
en
,
180
)
pen1
.
circle
(
l
ovesize
,
180
)
pen1
.
forward
(
2
*
l
en
)
pen1
.
forward
(
2
*
l
ovesize
)
pen1
.
hideturtle
()
pen1
.
hideturtle
()
turtle
.
done
()
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