Python traceback 模块,追踪错误 import traceback try: your code except: traceback.print_exc() 转载于:https://www.cnblogs.com/ibingshan/p/10244260.html