Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-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
4e480dfb
authored
Dec 21, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
c66a449e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
1.py
2.py
qiu1.py
1.py
0 → 100644
View file @
4e480dfb
import
turtle
#文字
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"blue"
)
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"春眠不觉晓
\n
处处问题鸟"
,
font
=
(
"times"
,
30
,
"normal"
))
pen
.
hideturtle
()
pen2
=
turtle
.
Pen
()
pen2
.
pensize
(
5
)
len
=
screen
.
textinput
(
"请输入"
,
"你想要多大的爱心啊"
)
newlen
=
int
(
len
)
pen2
.
pencolor
(
"red"
)
pen2
.
left
(
45
)
pen2
.
forward
(
2
*
newlen
)
pen2
.
circle
(
newlen
,
180
)
pen2
.
right
(
90
)
pen2
.
circle
(
newlen
,
180
)
pen2
.
forward
(
2
*
newlen
)
pen2
.
hideturtle
()
turtle
.
done
()
2.py
0 → 100644
View file @
4e480dfb
qiu1.py
0 → 100644
View file @
4e480dfb
import
turtle
screen
=
turtle
.
Screen
()
screen
.
textinput
(
"姓名"
,
"你的名字是:"
)
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