📜  删除python代码示例中的重复项

📅  最后修改于: 2022-03-11 14:45:13.869000             🧑  作者: Mango

代码示例2
# remove duplicate from given_list using list comprehension
res = []
[res.append(x) for x in given_list if x not in res]