Commit e1736419 by BellCodeEditor

save project

parent 45aa2e97
Showing with 2 additions and 3 deletions
...@@ -6,8 +6,6 @@ except: ...@@ -6,8 +6,6 @@ except:
print('输入错误,请重新输入一个数字') print('输入错误,请重新输入一个数字')
total.append(unit) total.append(unit)
else: else:
if unit =='q'
break
return total return total
print(total) print(total)
...@@ -16,5 +14,5 @@ print(total) ...@@ -16,5 +14,5 @@ print(total)
for i in money: for i in money:
count=count+1 count=count+1
return sum return sum
print(count) print('您一共消费了'+str(count)+'元!请问是扫码还是现金呢?')
\ 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