标签: python oop inheritance
这是代码:
class Dog: def walk(self): print("walking") class Cat(Dog): def shit(self): super().walk() foo = Cat() print(foo.shit()) Output: Walking None
为什么没有给我?