Commit 4b221cd7 by BellCodeEditor

auto save

parent 722da9ff
Showing with 6 additions and 3 deletions
...@@ -11,13 +11,16 @@ def ssssss(): ...@@ -11,13 +11,16 @@ def ssssss():
print("滚") print("滚")
else: else:
total.append(unit) total.append(unit)
finally:
print("-"*30) print("-"*30)
return total return total
def h(money): def h(money):
count=0 count=0
for i in money: for i in money:
count=count+i count=count+i
return count return count
result = ssssss() price = ssssss()
print(result) pay = h(price)
print("您一共消费了"+str(result)+"元,扫码还是现金?") 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