try: do something except Exception,e: print Exception,“:”,e print ‘traceback.print_exc():’; traceback.print_exc() 小杰博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 转载请注明原文链接:Python打印具体出错路径 喜欢 (0)