很早以前见到过“python的类、基类、多态、取消基类的代码",现在很想找到那个例子,可惜,又找不到了!算了,把已经知道的收集一下,以后看到了再补充!__bases__是一个元组(可能是None或独元), 包括其基类, 以基类列表中它们的排列次序出现
---------http://www.ixpub.net/redirect.php?tid=641482&goto=lastposthttp://www.linuxforum.net/forum/printthread.php?Cat=&Board=python&main=108720&type=post
---------def classic_lookup(cls, name): "Look up name in cls and its base......
阅读全文