Commit bad089a2 by BellCodeEditor

save project

parent ccb0aa67
Showing with 11 additions and 4 deletions
......@@ -12,7 +12,14 @@ def new_input():
else:
total.append(unit)
finally
print("-"*30)
return total
result = new_input()
input(result)
print("==="30)
return toyal
def sum(money)
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