james-l
2/1/2017 - 2:14 AM

如何使用python的traceback

如何使用python的traceback

import traceback

try:
    a = 1 / 0
except:
    print str(traceback.format_exc())