我发现以下两项工作:
class Foo(): def a(self): print "hello" class Foo(object): def a(self): print "hello"
所有Python类都应该扩展对象吗?没有扩展对象有任何潜在的问题吗?
python inheritance
inheritance ×1
python ×1