Python: create many subinstances of one maininstance by pre-changing settings in maininstance

前端 未结 0 1093
無奈伤痛
無奈伤痛 2021-01-12 20:54

sorry, i\'ve searched for a while, but found nothing :-s

how can i realize this:

class MainClass:
  def __init__(self):
    self.setting1 = 1
    self.         


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