阅读背景:

Python的“超级”如何做正确的事情?

来源:互联网 

I'm running Python 2.5, so this question may not apply to Python 3. When you make a diamond class hierarchy using multiple inheritance and create an object of the derived-most class, Python does the Right Thing (TM). It calls the constructor for the derived-most class, then its parent classes as listed from left to right, then the grandparent. I'm familiar with Python's I'm running Python 2.5, so this question may no




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: