lovemyspring

python打印详细的异常信息

#!/usr/bin/env python
#coding=utf-8
import traceback  
    
try:
    1/0
except Exception, e:
    print e
    print traceback.format_exc()

  

分类:

技术点:

相关文章:

  • 2021-11-20
  • 2021-05-09
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-11-20
  • 2021-11-20
猜你喜欢
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-11-10
  • 2021-05-28
  • 2021-11-20
相关资源
相似解决方案