# 列表中的字典去重
def duplicate(self, data_list):
run_function = lambda x, y: x if y in x else x + [y]
return reduce(run_function, [[], ] + data_list)
对列表中的字典去重
最新推荐文章于 2023-06-19 10:14:12 发布
# 列表中的字典去重
def duplicate(self, data_list):
run_function = lambda x, y: x if y in x else x + [y]
return reduce(run_function, [[], ] + data_list)