파이썬에서 슈퍼 생성자를 호출하는 방법? class A: def __init__(self): print("world") class B(A): def __init__(self): print("hello") B() # output: hello 다른 모든 언어에서는 수퍼 생성자를 사용하여 암시 적으로 호출됩니다. 파이썬에서 어떻게 호출합니까? 나는 기대 super(self)하지만 이것은 작동하지 않습니다. super()새로운 스타일의 클래스에서 부모와 같은 객체 를 반환합니다 . class A(object): def __init__(self): print "world" class B(A): def __init__(self): print "hello" super(B, self).__init__() B() 다른 ..