"""
print("************************************************************************************")
print('str(Exception):\t', str(Exception))
print('str(e):\t\t', str(e))
print('repr(e):\t', repr(e))
# Get information about the exception that is currently being handled
exc_type, exc_value, exc_traceback = sys.exc_info()
print('e.message:\t', exc_value)
print("Note, object e and exc of Class %s is %s the same." %
(type(exc_value), ('not', '')[exc_value is e]))
print('traceback.print_exc(): ', traceback.print_exc())
print('traceback.format_exc():\n%s' % traceback.format_exc())
print("1%s" % str(e.args))
print("************************************************************************************")
print(dir(e))
"""
临时记录以防忘掉
Python Exception
最新推荐文章于 2024-08-31 21:39:38 发布