Commit d22a76f6 by BellCodeEditor

save project

parent 4feedd9a
Showing with 11 additions and 3 deletions
...@@ -12,10 +12,17 @@ def info(): ...@@ -12,10 +12,17 @@ def info():
else: else:
total.append(unit) total.append(unit)
finally: finally:
print("-"*30) print("====================")
return total return total
result = info() def sum(money):
print(result) count = 0
for i in money:
count = count + i
return count
price = info()
pay = sum(price)
print("消费" + str(pay) + "元!扫码还是现金")
\ 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