在一個類裏創建其它類的方式------聲明方法返回該類對象和將該類對象作爲該類屬性

一、前提知識儲備 用來獲取該類創建對象的個數 count=0 def new(cls): cls.count = cls.count + 1 return super(Red_Ini, cls).new(cls) def Count(self): print(self.count) 2.Read_Ini類----被引用的類 二、創建其它類的對象作爲該類的屬性 3.Path_Constant()--
相關文章
相關標籤/搜索