(self, result)
删除指定规则中字典的值
删除指定规则中字典的值
删除指定规则中字典的值
def data_tidy(self, result):
        """  删除指定规则中字典的值

        """
        for path in self.d_list:
            if path[-1] == 'None':
                self.del_key(result, path[:-1])
            elif path[-2].find('id') != -1 or path[-2].find('Id') != -1 or path[-2].find('Time') != -1:
                self.del_key(result, path[:-1])
            elif path[0].find('request') != -1:
                self.del_key(result, path[:-1])
        self.d_list.clear()
def data_tidy ( self , result ) : for path in self . d_list : if path [ - 1 ] == 'None' : self . del_key ( result , path [ : - 1 ] ) elif path [ - 2 ] . find ( 'id' ) != - 1 or path [ - 2 ] . find ( 'Id' ) != - 1 or path [ - 2 ] . find ( 'Time' ) != - 1 : self . del_key ( result , path [ : - 1 ] ) elif path [ 0 ] . find ( 'request' ) != - 1 : self . del_key ( result , path [ : - 1 ] ) self . d_list . clear ( )