Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-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
b0f301fe
authored
Nov 21, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
4184257a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
20 deletions
1.py
zjk.py
1.py
View file @
b0f301fe
def
new_input
():
import
turtle
total
=
[]
while
True
:
pen
=
turtle
.
Pen
()
money
=
input
(
'请输入 (q退出):'
)
screen
=
turtle
.
Screen
()
if
money
==
'q'
:
pen
.
speed
(
'fast'
)
break
pen
.
hideturtle
()
else
:
screen
.
bgcolor
(
'black'
)
try
:
i
=
0
money
=
int
(
money
)
while
i
<
135
:
except
:
pen
.
pencolor
(
'pink'
)
print
(
"请输入亿————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————个数字"
)
pen
.
penup
()
else
:
pen
.
goto
(
0
,
0
)
total
.
append
(
money
)
pen
.
forward
(
200
)
finally
:
pen
.
pendown
()
print
(
"-"
*
30
)
pen
.
circle
(
100
)
return
total
pen
.
left
(
2
)
result
=
new_input
()
i
+=
1
print
(
result
)
turtle
.
dong
()
"——————————————————————————"
\ No newline at end of file
\ No newline at end of file
zjk.py
0 → 100644
View file @
b0f301fe
def
new_input
():
total
=
[]
while
True
:
unit
=
input
(
'输入445即可退出'
)
if
unit
==
'q'
:
break
else
:
total
.
append
(
unit
)
print
(
total
)
new_input
()
\ 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