阅读背景:

如何在Python中获得完整的异常堆栈跟踪?

来源:互联网 

The following snippet:

以下代码片段:

import traceback

def a():
    b()

def b():
    try:
        c()
    except:
        traceback.print_exc()

def c():
    assert False

a()
import trace



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: