Commit 1ea2e463 by BellCodeEditor

auto save

parent 68f7af43
...@@ -18,6 +18,4 @@ def sum(money): ...@@ -18,6 +18,4 @@ def sum(money):
for i in money: for i in money:
count = count + i count = count + i
return count return count
price = store()
pay = sum(price)
print("您一共消费了" + str(pay) + "元!扫码还是现金呢?")
\ No newline at end of file
import w import w
import w import w
A=w.store() A=w.store()
B=w.sum() B=w.sum(A)
\ No newline at end of file print("你得了"+str(B))
\ 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