Why doesn't the super function work to get class attributes?

后端 未结 0 488
眼角桃花
眼角桃花 2021-01-30 08:39

From what I\'ve read, the super function is used to refer to the parent class. But if so, how come this doesn\'t work?

class Parent:
    x = 5

class Child(Parent         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题