Commit 319d901f by BellCodeEditor

save project

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