Inherit attribute from class that is isn't passed into __init__ method

前端 未结 0 1612
再見小時候
再見小時候 2021-01-03 07:32

Ok, so let\'s say I\'m making a class and a child class like this:

class A:
    def __init__(self, list1=[], list2=[]):
        self.list1 = []
        self.l         


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