super() fails with error: TypeError “argument 1 must be type, not classobj”

关于Python的面向对象的编程有这样一个例子:html class Bird: def __init__(self): self.hungry = 1 def eat(self): if self.hungry: print 'Aaaah...' self.hungry = 0 els
相关文章
相关标签/搜索