Python的duck type:
>>> class Man():
def say(self):
print 'I \'m a man'
>>> class Woman():
def say(self):
print 'I \'m a woman'
>>> def say(Sayable):
Sayable.say()
>>> m = Man()
>>> w = Woman()
>>> say(m)
I 'm a man
>>> say(w)
I 'm a woman
>>>