📜  python 如何转储异常 stak - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:01.344000             🧑  作者: Mango

代码示例1
import traceback

try:
    do_stuff()
except Exception:
    print(traceback.format_exc())