Exception's instance method

前端 未结 0 1488
执念已碎
执念已碎 2021-02-02 05:27

I need to know what line of code an exception happens, how can I do it starting from the instance? Example:

try:
    10/0
except ZeroDivisionError as err:
    # p         


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