from functools import reduce
data_list = [{"a":"123", "b":"321"},{"a":"123", "b":"321"}]
run_function = lambda x, y: x if y in x else x + [y]
print(reduce(run_function, [[], ] + data_list))
python列表里的字典元素去重from functools import reducedata_list = [{"a":"123", "b":"321"},{"a":"123", "b":"321"}]run_function = lambda x, y: x if y in x else x + [y]print(reduce(run_function, [[], ] + data...