Which one to use: super() or self.function() with function defined in the parent class

前端 未结 0 911
执念已碎
执念已碎 2021-01-14 17:44

Let\'s consider the following dummy example:

class A:
    def __init__(self, a):
        self.a = a
        self.backup_a = a
        
    def reset_a(self):
         


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