Commit 24c37ed1 by BellCodeEditor

save project

parent 8c7ba1d5
Showing with 11 additions and 4 deletions
......@@ -12,7 +12,14 @@ def new_input():
else:
total.append(unit)
finally:
print("-"*30)
print(total)
new_input()
\ No newline at end of file
return total
def sum(money):
count = 0
for i in money:
count = count + i
return count
price = new_input()
pay = sum(price)
print("一共消费"+ str(pay) + "zhifu")
\ 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