python实现列表去重的方法

 

>>> l=[1,2,3,4,2,2,2]
>>> list(set(l))
[1, 2, 3, 4]
>>> 

 

posted @ 2019-04-26 02:20  anobscureretreat  阅读(301)  评论(0编辑  收藏  举报