Python factory, where object parameters can be specified gradually?

前端 未结 0 652
滥情空心
滥情空心 2021-02-06 08:02

Assuming we have the following object (in reality many more parameters):

class Room:
    def __init__(self, h, w, color):
        self.h = h
        self.w = w
           


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