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
631757ce
authored
Apr 11, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
9cdd86c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
diy1.py
diy1.py
View file @
631757ce
# 利用write()帮助悟空给诺依回信吧~
# 利用write()帮助悟空给诺依回信吧~
import
turtle
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light pink"
)
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
#pen.write("游子吟\n[唐]孟郊\n慈母手中线\n游子身上衣\n临行密密缝\n意恐迟迟归\n谁言寸草心\n报得三春晖",font=("Times",20,"normal"))
pen
.
penup
()
pen
.
pencolor
(
"red"
)
pen
.
goto
(
190
,
-
250
)
pen
.
pensize
(
"5"
)
pen
.
write
(
"游子吟
\n
[唐]孟郊
\n
慈母手中线,
\n
游子身上衣。
\n
临行密密缝,
\n
意恐迟迟归。
\n
谁言寸草心,
\n
报得三春晖。"
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
fillcolor
(
"red"
)
pen
.
begin_fill
()
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
circle
(
50
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
forward
(
100
)
pen
.
end_fill
()
pen
.
hideturtle
()
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
pencolor
(
"red"
)
pen1
.
pensize
(
10
)
pen1
.
fillcolor
(
"red"
)
pen1
.
begin_fill
()
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
pen1
.
circle
(
50
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
pen1
.
forward
(
100
)
pen1
.
end_fill
()
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