摘要: 列表去重(保持原来的顺序) from functools import reduce list1 = [1,4,3,3,4,2,3,4,5,6,1] # func = lambda x,y:x if y in x else x + [y] list2=reduce(lambda x,y:x if y 阅读全文
posted @ 2018-03-20 14:21 安迪9468 阅读(215) 评论(0) 推荐(0)