import math
try:
print(math.exp(999)) # 尝试计算过大的数值
except OverflowError:
print("数值过大,超出计算范围")
except:
print("发生了其他错误")