python中打印错误堆栈
import traceback
try:
print("do sth here")
except Exception as e:
print("======")
print(traceback.format_exc())
print("======")
print(e.args)
print("======")