On a custom exception, how is __str__ defined?

前端 未结 0 1330
别那么骄傲
别那么骄傲 2020-12-14 10:33

On a course I found the following piece of code:

class Ex(Exception):
    def __init__(self, msg):
        Exception.__init__(self, msg + msg)
        self.ar         


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