How to print out the traceback object (trigger for a exception)?

后端 未结 0 1712
天命终不由人
天命终不由人 2020-12-12 16:24

is there a way to print out the trigger of a exception? In this case, x is the trigger and I want to print out x only. E.G: print("Wrong usage detected at: ", Trig

相关标签:
回答
  • 消灭零回复
提交回复
热议问题