Python traceback 模块,追踪错误

Python traceback 模块,追踪错误

import traceback

try:

  your code

except:

  traceback.print_exc()

posted @ 2019-01-09 14:39  ibingshan  阅读(457)  评论(0编辑  收藏  举报