Commit 2ea0f570 by BellCodeEditor

save project

parent 2e5125e9
Showing with 1 additions and 1 deletions
...@@ -2,7 +2,7 @@ def sb(): ...@@ -2,7 +2,7 @@ def sb():
total = [] total = []
try: try:
while True: while True:
unit=int(input("请输入价格(按q键停止)")) unit=int(input("请输入价格(按q键停止):"))
total.append(unit) total.append(unit)
except: except:
print('输入错误,请输入一个价格') print('输入错误,请输入一个价格')
......
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