[Python] python删除列表中的重复记录 →→→→→进入此内容的聊天室

来自 , 2019-08-23, 写在 Python, 查看 130 次.
URL http://www.code666.cn/view/384cb854
  1. def removeListDuplicates(seq):
  2.         seen = set()
  3.         seen_add = seen.add
  4.         return [ x for x in seq if x not in seen and not seen_add(x) ]

回复 "python删除列表中的重复记录"

这儿你可以回复上面这条便签

captcha