# 广度优先
# class A(object):
# def test(self):
# print('from A')
# class B(A):
# def test(self):
# print('from B')
# class C(A):
# def test(self):
# print('from C')
# class D(B):
# def test(self):
# print('from D')
# class E(C):
# def test(self):
# print('from E')
# class F(D,E):
# def test(self):
# print('from F')
# pass
# f1=F()
# f1.test()
'''
from F
'''
# class A(object):
# def test(self):
# print('from A')
# class B(A):
# def test(self):
# print('from B')
# class C(A):
# def test(self):
# print('from C')
# class D(B):
# def test(self):
# print('from D')
# class E(C):
# def test(self):
# print('from E')
# class F(D,E):
# # def test(self):
# # print('from F')
# pass
# f1=F()
# f1.test()
'''
from D
'''
# class A(object):
# def test(self):
# print('from A')
# class B(A):
# def test(self):
# print('from B')
# class C(A):
# def test(self):
# print('from C')
# class D(B):
# # def test(self):
# # print('from D')
# pass
# class E(C):
# def test(self):
# print('from E')
# class F(D,E):
# # def test(self):
# # print('from F')
# pass
# f1=F()
# f1.test()
'''
from B
'''
# class A(object):
# def test(self):
# print('from A')
# class B(A):
# # def test(self):
# # print('from B')
# pass
# class C(A):
# def test(self):
# print('from C')
# class D(B):
# # def test(self):
# # print('from D')
# pass
# class E(C):
# def test(self):
# print('from E')
# class F(D,E):
# # def test(self):
# # print('from F')
# pass
# f1=F()
# f1.test()
'''
from E
'''
# class A(object):
# def test(self):
# print('from A')
# class B(A):
# # def test(self):
# # print('from B')
# pass
# class C(A):
# def test(self):
# print('from C')
# class D(B):
# # def test(self):
# # print('from D')
# pass
# class E(C):
# # def test(self):
# # print('from E')
# pass
# class F(D,E):
# # def test(self):
# # print('from F')
# pass
# f1=F()
# f1.test()
'''
from C
'''
# class A(object):
# def test(self):
# print('from A')
# class B(A):
# # def test(self):
# # print('from B')
# pass
# class C(A):
# # def test(self):
# # print('from C')
# pass
# class D(B):
# # def test(self):
# # print('from D')
# pass
# class E(C):
# # def test(self):
# # print('from E')
# pass
# class F(D,E):
# # def test(self):
# # print('from F')
# pass
# f1=F()
# f1.test()
'''
from A
'''
# class A(object):
# def test(self):
# print('from A')
# class B(A):
# # def test(self):
# # print('from B')
# pass
# class C(A):
# # def test(self):
# # print('from C')
# pass
# class D(B):
# # def test(self):
# # print('from D')
# pass
# class E(C):
# # def test(self):
# # print('from E')
# pass
# class F(D,E):
# # def test(self):
# # print('from F')
# pass
# f1=F()
# print(F.mro())
'''
[<class '__main__.F'>, <class '__main__.D'>, <class '__main__.B'>, <class '__main__.E'>, <class '__main__.C'>, <class '__main__.A'>, <class 'object'>]
'''