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
b415a4fb
authored
Nov 20, 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
4 changed files
with
34 additions
and
0 deletions
2.py
diy1 copy.py
diy1.py
正方形.py
2.py
0 → 100644
View file @
b415a4fb
import
turtle
screen
=
turtle
.
Screen
()
len
=
float
(
screen
.
textinput
(
"提示"
,
"你想要多大的爱心?"
))
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"胡以晴
\n
陈天琪"
,
font
=
(
"黑体"
,
10
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
pensize
(
15
)
pen1
.
pencolor
(
"red"
)
pen1
.
left
(
45
)
pen1
.
forward
(
len
*
2
)
pen1
.
circle
(
len
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
len
,
180
)
pen1
.
forward
(
len
*
2
)
pen1
.
hideturtle
()
screen
.
bgcolor
(
"blue"
)
turtle
.
done
()
\ No newline at end of file
diy1 copy.py
0 → 100644
View file @
b415a4fb
diy1.py
0 → 100644
View file @
b415a4fb
# 利用write()帮助悟空给诺依回信吧~
import
turtle
pen
.
write
(
"dgjryh"
,
font
=
(
""
))
\ No newline at end of file
正方形.py
0 → 100644
View file @
b415a4fb
import
turtle
import
turtle
tony
=
turtle
.
Pen
()
for
i
in
range
(
100
):
for
i
in
range
(
4
):
tony
.
forward
(
100
)
tony
.
right
(
90
)
tony
.
right
(
6
)
\ 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