Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-4-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
42b7a41d
authored
Jan 28, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a50ceeec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
diy1.py
diy1.py
0 → 100644
View file @
42b7a41d
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"blue"
)
pen
=
turtle
.
Pen
()
pen2
=
turtle
.
Pen
()
pen
.
pensize
(
10
)
pen
.
pencolor
(
"red"
)
pen2
.
pensize
(
10
)
pen2
.
pencolor
(
"red"
)
yanse
=
screen
.
textinput
(
""
,
""
)
pen
.
pencolor
(
yanse
)
pen2
.
pencolor
(
yanse
)
len
=
30
len
=
screen
.
textinput
(
"提示信息"
,
"标题,窗口名称"
)
len
=
int
(
len
)
pen
.
left
(
45
)
pen
.
forward
(
2
*
len
)
pen
.
circle
(
len
,
180
)
pen2
.
left
(
135
)
pen2
.
forward
(
2
*
len
)
pen2
.
circle
(
-
len
,
180
)
# pen2.goto(-40,40)
pen2
.
hideturtle
()
pen
.
hideturtle
()
pen
.
write
(
"听我说
\n
谢谢你"
,
font
=
(
"Times"
,
20
,
"normal"
))
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