我没见过这么用的,试了一把,能正常捕获,这用法正确吗?
try:
print(2/0)
except Exception as e:
try:
print(w)
except Exception as f:
print(f,e)
name 'w' is not defined division by zero
我没见过这么用的,试了一把,能正常捕获,这用法正确吗?
try:
print(2/0)
except Exception as e:
try:
print(w)
except Exception as f:
print(f,e)
name 'w' is not defined division by zero