Commit 98fea7ab by BellCodeEditor

save project

parent af3eeb92
Showing with 7 additions and 8 deletions
...@@ -15,12 +15,11 @@ def new_input(): ...@@ -15,12 +15,11 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
return total return total
def add(count): add2 = new_input()
a = new_input() def sum(add):
for i in a: add1 = 0
print(i) for i in add:
add1 += i
return add1
print("总金额是" ,sum(add2) )
print(total)
new_input()
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