Commit c3ab9a79 by BellCodeEditor

save project

parent b35c08a0
Showing with 1 additions and 2 deletions
total = []
x = 0 x = 0
def diancai(): def diancai():
total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
if unit== 'q': if unit== 'q':
...@@ -20,7 +20,6 @@ def sum(): ...@@ -20,7 +20,6 @@ def sum():
return o return o
x = diancai() x = diancai()
w = sum() w = sum()
diancai()
sum() sum()
print('您一共消费了' + str(w) + '元!扫码还是现金呢?') print('您一共消费了' + str(w) + '元!扫码还是现金呢?')
......
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