Commit bad089a2 by BellCodeEditor

save project

parent ccb0aa67
Showing with 11 additions and 4 deletions
...@@ -12,7 +12,14 @@ def new_input(): ...@@ -12,7 +12,14 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
finally finally
print("-"*30) print("==="30)
return total return toyal
result = new_input() def sum(money)
input(result) count = 0
for i in money:
count = count+1
return count
price = new_input()
pay = sum(price)
print("一共消费了"+str(pay)+"元,您扫码还是现金")
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