python in a small turtle problem of multiple inheritance

The following code, guess what look will print?

class A: 
DEF FUNC (Self):
Print ( 'A')
class B (A):
# Pass
DEF FUNC (Self):
Print ( 'B')
class C (A):
DEF FUNC (Self):
Print ( ' C ')
class D (C):
DEF FUNC (Self):
Print (' D ')

class E (B): Pass
# DEF FUNC (Self):
# Print (' E ')
class F. (E, D): Pass
#def FUNC (Self):
# Print ( 'F')

f = F ()
f.func ()

the order of succession to follow the breadth-first principle

 

Guess you like

Origin www.cnblogs.com/bright2029/p/11573825.html