Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-2_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
89e7cf1d
authored
Jun 09, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
c47485ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
diy1.py
diy1.py
View file @
89e7cf1d
import
turtle
import
turtle
screen
=
turtle
.
Screen
()
# pen=turtle.Pen()
screen
.
bgcolor
(
"pink"
)
# pen.write("亲爱的诺依\n,地球上有啥好玩的吗\n,请你快点给我回信吧",font=("Times",20,"normal"))
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
50
,
-
100
)
pen
.
write
(
"亲爱的诺依,
\n
地球上有啥好玩的吗?
\n
请你快点给我回信吧。"
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
=
turtle
.
Pen
()
pen1
.
pensize
(
10
)
pen1
.
pensize
(
10
)
pen1
.
color
(
"red"
)
pen1
.
color
(
"red"
)
...
...
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