Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_2
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
1bf51263
authored
Nov 03, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
61197007
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
func.py
func.py
View file @
1bf51263
...
@@ -6,15 +6,22 @@ def new_input():
...
@@ -6,15 +6,22 @@ def new_input():
break
break
else
:
else
:
try
:
try
:
money
=
int
(
number
)
money
=
int
(
money
)
except
:
except
:
print
(
"请输入一个数字"
)
print
(
"请输入一个数字"
)
else
:
else
:
total
.
append
(
number
)
total
.
append
(
money
)
finally
:
finally
:
print
(
"_"
*
3
)
print
(
"_"
*
3
0
)
return
total
return
total
def
cont
(
lb
):
rsult
=
new_input
()
mun
=
0
print
((
result
))
for
i
in
lb
:
mun
=
mun
+
i
return
mun
rsul
=
tots1
print
(
rsul
)
print
(
"已经拿到用户列表"
)
print
(
"开始进行方案2"
)
print
(
cout
(
result
))
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