Commit fedaeab8 by BellCodeEditor

save project

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