Commit fedaeab8 by BellCodeEditor

save project

parent 7444909e
Showing with 11 additions and 7 deletions
total=[]
while True:
unit=input('请输入单价(q退出):')
if unit=='q':
break
else:
try:
unit= input("请输入:")
unit=int(unit)
except:
print('孩砸别闹')
else:
if unit== 'q':
break
print('儿砸别闹')
else:
total.append(unit)
print(total)
\ No newline at end of file
finally:
print('*'*30)
print(total)
\ 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