python_interview_question
python_interview_question copied to clipboard
13.请写出一段python代码实现删除list里面的重复元素?
两行代码实现: from functools import reduce reduce(lambda a,u: a if u in a else a+[u], l1, [])