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
3e96ee1f
authored
Jan 27, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
2c920d97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
diy1.py
diy1.py
View file @
3e96ee1f
import
turtle
pen
=
turtle
.
Pen
()
pen
.
write
(
"你好,未来的我,相信你看到
\n
这封信时,已经是2034年
\n
了。我在此祝你万事如意、多多保重、
\n
如虎添翼!"
,
font
=
(
"Times"
,
14
,
"normal"
))
pen
.
hideturtle
()
# word_pen=turtle.Pen()
# word_pen.write("你好,未来的我,相信你看到\n这封信时,已经是2034年\n了。我在此祝你万事如意、多多保重、\n如虎添翼!",font=("Times",14,"normal"))
# word_pen.hideturtle()
# turtle.done()
heart_pen
=
turtle
.
Pen
()
heart_pen
.
pensize
(
5
)
heart_pen
.
pencolor
(
"red"
)
heart_pen
.
left
(
45
)
heart_pen
.
forward
(
100
)
heart_pen
.
circle
(
50
,
180
)
heart_pen
.
right
(
90
)
heart_pen
.
circle
(
50
,
180
)
heart_pen
.
forward
(
100
)
heart_pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
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