Commit 38449b28 by BellCodeEditor

save project

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