How to override an instance variable in a subclass

前端 未结 0 521
梦毁少年i
梦毁少年i 2021-02-03 14:16

My code has a class with a simple instance variable self.foo which holds a list object.

class MyClass:
    def __init__(self):
        self.foo = []
         


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