2014年8月27日

获取python的异常信息1

摘要: 代码为:if __name__ == '__main__': try: cc = 10/0 except: import sys,traceback print 'begin' print ''.join(traceback.format_exception(*sys.exc_info())) p... 阅读全文

posted @ 2014-08-27 13:49 leafs 阅读(129) 评论(0) 推荐(0) 编辑

导航