python面试题之Python代码实现删除一个list里面的重复元素
作者:互联网
>>> l = [1,1,2,3,4,5,4] >>> list(set(l)) [1, 2, 3, 4, 5] 或者 d = {} for x in mylist: d[x] = 1 mylist = list(d.keys())
所属网站分类: 面试经典 > python
作者:外星人入侵
原文链接: http://www.pythonheidong.com/blog/article/25/
来源:python黑洞网 www.pythonheidong.com
标签:面试题,mylist,python,list,www,com,pythonheidong 来源: https://www.cnblogs.com/fuchen9527/p/10944293.html