Commit 727ce1ed by BellCodeEditor

save project

parent 77acb14c
Showing with 8 additions and 8 deletions
total = ['王者荣耀','亚瑟'] total = ['王者荣耀','亚瑟']
while True: while True:
unit= int(input("请输入:")) unit=input("请输入:")
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
age = int(unit)
except:
print('请输入数字')
else:
total.append(unit)
print(total) print(total)
try:
age = int(input('hhhh'))
except:
print('ede')
print('123')
\ 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