"""author = 曹琦"""
作业:输入年龄并且将年龄值转换成整数,如果输入错误程序不崩溃,让其重新输入,知道输入无误为止....
while True:
try:
age = int(input('请输入年龄:'))
except:
print('请重新输入:')
continue
break
print('=========')
"""author = 曹琦"""
while True:
try:
age = int(input('请输入年龄:'))
except:
print('请重新输入:')
continue
break
print('=========')