try:
year = int(input())
print(type(year), year)
except ValueError:
print('num')
except (ZeroDivisionError, AttributeError):
print('za')
except Exception as e:
print(e)
finally:
print('finally')
# 自定义异常
try:
raise NameError('helloError')
except NameError:
print('ff')