Python의 Super() 함수의 역할을 이해할수 있는 예제

class A(object): def save(self): print 'A saved' class B(A): def save(self): print 'B saved' A.save(self) class C(A): def save(self): print 'C saved' A.save(self) class D(B, C): def save(self): print 'D saved' B.save(self) C.save(self) a = D() a.save() print "—————————————-" class A(object): def save(self): print 'A saved' class B(A): def _save(self): print 'B save' def save(self): […]