Commit 6fa4c438 by BellCodeEditor

save project

parent 1afa2d26
Showing with 4 additions and 4 deletions
...@@ -2,7 +2,6 @@ def new_input(): ...@@ -2,7 +2,6 @@ def new_input():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
if unit== 'q':
break break
else: else:
try: try:
...@@ -16,6 +15,7 @@ def new_input(): ...@@ -16,6 +15,7 @@ def new_input():
def sum(money): def sum(money):
count=0 count=0
for i in money: for i in money:
count=count+i count=count
return count return count
new_input() new_input()
\ No newline at end of file date=func.su
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment