首页 > 代码库 > python打印详细的异常信息

python打印详细的异常信息

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