Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-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
aad8924c
authored
May 22, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
07858a54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
diy1.py
diy1.py
0 → 100644
View file @
aad8924c
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"blue"
)
pen
=
turtle
.
Pen
()
pen
.
write
(
"我tm的谢谢你
\n
你个大聪明"
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
penl
=
turtle
.
Pen
()
penl
.
penup
()
penl
.
goto
(
-
100
,
0
)
penl
.
pencolor
(
"red"
)
penl
.
pensize
(
5
)
len
=
60
penl
.
pendown
()
len
=
int
(
turtle
.
textinput
(
"提示"
,
"输入心形的大小"
))
penl
.
left
(
45
)
penl
.
forward
(
2
*
len
)
penl
.
circle
(
len
,
180
)
penl
.
right
(
90
)
penl
.
circle
(
len
,
180
)
penl
.
forward
(
2
*
len
)
penl
.
hideturtle
()
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