网络编程

 

class A(object):
pass
class B(A):
pass
class C(B):
pass
class D(object):
pass

class F(object):
pass
class G(F):
pass
class E(D,C,G):
pass
class H(C,G):
pass
class M(G):
pass

class Foo(E,H):
pass
print(Foo.__mro__)
# le  e,d,c,b,a,object
# lh h,c,b,a,g,f object
# lm m,g,f,object

# (object) (object) (object)
# Foo,e,d,h,c,b,a,m,g,f,object

 

 

posted @ 2018-09-03 16:00  2275114213  阅读(129)  评论(0编辑  收藏  举报