![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Pond_fish
这个作者很懒,什么都没留下…
展开
-
【面试题】Python列表面试题
Python列表面试题原创 2022-09-15 23:22:27 · 439 阅读 · 0 评论 -
Python 使用set()去除列表重复
一、去除重复元素方法: 1. 对List重复项,可以使用set()去除重复 a = [5, 2, 5, 1, 4, 3, 4,1,0,2,3,8,9,9,9]print(list(set(a))) #将去掉重复的项后,再重新转成list 最后的执行结果 F:\Python\venv\Scripts\python.exe F:/Python/123.py[0, 1, 2, 3, 4, 5, 8, 9...转载 2021-01-03 10:40:16 · 2360 阅读 · 1 评论