Commit af262e77 by BellCodeEditor

save project

parent 6d88eca4
Showing with 18 additions and 0 deletions
total = []
def new_input():
while True:
money= input("请输入:")
if money== 'q':
break
try:
money=int(money)
except:
print('傻逼打错了')
else:
total.append(money)
finally:
print('-'*97)
return total
print(total)
result=new_input()
print(result)
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