*获取异常的问题所在,并告诉用户
上一节
下一节
try:
...
except Exception as e:
...
将捕获 SystemExit 、 KeyboardInterrupt 和 GeneratorExit 之外的所有异常。
目录
try:
...
except Exception as e:
...
将捕获 SystemExit 、 KeyboardInterrupt 和 GeneratorExit 之外的所有异常。