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
c0b20423
authored
May 08, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
c816b9b8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
diy1.py
贺卡.py
陈歆豪.py
diy1.py
0 → 100644
View file @
c0b20423
# 利用write()帮助悟空给诺依回信吧~
import
turtle
screen
=
turtle
.
screen
()
screen
.
bgcolor
(
"white"
)
Pen
=
turtle
.
Pen
()
Pen
.
penup
()
Pen
.
goto
(
100
,
0
)
Pen
.
pencolor
(
"white"
)
Pen
.
write
(
"你
\n
乃何方圣神"
,
font
=
(
"Times"
,
20
,
"normal"
))
Pen
.
hideturtle
()
Pen
.
pencolor
(
"white"
)
Pen1
=
turtle
.
Pen
()
Pen1
.
pensize
(
5
)
Pen1
.
pencolor
(
"white"
)
len
=
screen
.
textinput
(
"提示"
,
"抓爱心,抓爱心,抓几只?"
)
lovesize
=
int
(
len
)
Pen1
.
left
(
45
)
Pen1
.
forward
(
lovesize
)
Pen1
.
circle
(
2
*
lovesize
,
180
)
Pen1
.
right
(
90
)
Pen1
.
circle
(
lovesize
,
180
)
Pen1
.
forward
(
2
*
lovesize
)
Pen1
.
hideturtle
()
turtle
.
done
()
贺卡.py
0 → 100644
View file @
c0b20423
import
turtle
import
turtle
Pen
=
turtle
.
Pen
()
Pen
.
write
(
"你
\n
乃何方圣神"
,
font
=
(
"Times"
,
20
,
"normal"
))
Pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
陈歆豪.py
0 → 100644
View file @
c0b20423
++ "b/\351\231\210\346\255\206\350\261\252.py"
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