Commit 38449b28 by BellCodeEditor

save project

parent 27ed5054
Showing with 10 additions and 8 deletions
...@@ -13,10 +13,12 @@ def new_input(): ...@@ -13,10 +13,12 @@ def new_input():
total.append(unit) total.append(unit)
print("_"*30) print("_"*30)
return total return total
def sum() def sum(money):
a=0 a=0
for i in sum(moner): for i in money:
a=a+i a=a+i
print(a) return a
new_input() add=new_input()
print(total) print(add)
\ No newline at end of file b=sum(add)
print("您一共消费了",b,"元")
\ 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