(self, result, path_list)
return self.del_key(result[path_list.pop(0)], path_list)
根据路径删除字典中指定的值

        :param result: dict
        :param path_list: 某个指定的值的路径list
根据路径删除字典中指定的值
根据路径删除字典中指定的值
def del_key(self, result, path_list):
        """  根据路径删除字典中指定的值

        :param result: dict
        :param path_list: 某个指定的值的路径list
        """
        num = len(path_list)
        if num == 1:
            return result.pop(path_list[0])

        return self.del_key(result[path_list.pop(0)], path_list)
def del_key ( self , result , path_list ) : num = len ( path_list ) if num == 1 : return result . pop ( path_list [ 0 ] ) return self . del_key ( result [ path_list . pop ( 0 ) ] , path_list )