(self)
初始化字段
初始化字段
初始化字段
def initFields(self):
        """
        初始化字段
        """
        nowdict = dict(self.__dict__)
        for item_key,item_value in nowdict.items():
            if isinstance(item_value, MemFields):
                item_value.name = self.produceKey(item_key)
                item_value.timeout = self._timeout
                item_value.cache = self._cache
def initFields ( self ) : nowdict = dict ( self . __dict__ ) for item_key , item_value in nowdict . items ( ) : if isinstance ( item_value , MemFields ) : item_value . name = self . produceKey ( item_key ) item_value . timeout = self . _timeout item_value . cache = self . _cache