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
4747594e
authored
Oct 30, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
94f1f298
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
1234567890.py
diy1.py
1234567890.py
0 → 100644
View file @
4747594e
import
turtle
pen
.
turtle
.
pen
()
pen
.
pensize
(
30
)
pen
.
pencolor
(
"red"
)
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
right
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
forward
(
100
)
pen
.
hideturtle
()
pen
.
penup
()
setheading
(
90
)
forward
(
50
)
pen
.
pendown
()
pen
.
turtle
.
pen
()
pen
.
pensize
(
30
)
pen
.
pencolor
(
"red"
)
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
right
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
forward
(
100
)
pen
.
hideturtle
()
\ No newline at end of file
diy1.py
View file @
4747594e
...
...
@@ -5,7 +5,7 @@ screen.bgcolor("light blue")
len
=
screen
.
textinput
(
"100"
,
"100"
)
len
=
int
(
len
)
pen
=
turtle
.
Pen
()
pen
.
write
(
"古原草送别
\n
【唐】
孟浩然
\n
离离原上草,
\n
一岁一枯荣。
\n
野火烧不尽,
\n
春风吹又生。
\n
"
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
write
(
"古原草送别
\n
【唐】
白居易
\n
离离原上草,
\n
一岁一枯荣。
\n
野火烧不尽,
\n
春风吹又生。
\n
"
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
len
=
60
pen
.
penup
()
...
...
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