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
824306b8
authored
Mar 10, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
995f0b49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
diy1.py
diy1.py
View file @
824306b8
from
turtle
import
*
# write("诺伊,\n你要戒尺吗",font=("Times",30,"normal"))
# hideturtle()
# done()
len
=
""
screen
=
Screen
()
len
=
screen
.
textinput
(
"提示"
,
"输入大小"
)
len
=
int
(
len
)
Screen
=
Screen
()
Screen
.
bgcolor
(
"light green"
)
write
(
"诺伊,
\n
你要戒尺吗"
,
font
=
(
"Times"
,
30
,
"normal"
))
penup
()
hideturtle
()
goto
(
-
100
,
0
)
pendown
()
pensize
(
5
)
pencolor
(
"green"
)
left
(
45
)
fd
(
100
)
circle
(
50
,
180
)
fd
(
2
*
len
)
circle
(
len
,
180
)
right
(
90
)
circle
(
50
,
180
)
fd
(
100
)
circle
(
len
,
180
)
fd
(
2
*
len
)
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