从架构的角度来看,这个例子可能有什么问题:
class Base(object):
def say_hello(self):
self.hello()
class Child1(Base):
def hello(self):
print 'Hello child 1'
class Child2(Base):
def hello(self):
print 'Hello child 2'
c = Child1()
c.say_hello()