Python 子类调用父类的构造函数
摘要:from:http://www.xinotes.org/notes/note/517/For old-style classes:BaseClassName.methodname(self, arguments)>>> class A:... def hello(self):... print 'a'...>>> A().hello()a>>> class C(A):... def hello(self):... A.hello(self)... print 'c'...>>> C().he
阅读全文