python异常捕获异常堆栈输出
Posted stono
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python异常捕获异常堆栈输出相关的知识,希望对你有一定的参考价值。
python异常捕获异常堆栈输出
学习了:https://blog.csdn.net/chris_grass/article/details/77927902
import traceback def fun(a,b): return a/b try: fun(1,0) except Exception as e: traceback.print_exc()
以上是关于python异常捕获异常堆栈输出的主要内容,如果未能解决你的问题,请参考以下文章