Commit 59397cb7 by BellCodeEditor

save project

parent 9658841b
Showing with 7 additions and 20 deletions
......@@ -8,31 +8,17 @@ def func():
else:
total.append(int(unit))
except:
print("只能输入整数或q")
print("只能输入整数或'q'")
return total
def sum(money):
count = 0
for i in money:
count + = i
count += i
return count
list1 = func()
print(list1)
list1 = func()
result = sum(list1)
print(result)
\ 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