In [32]: list_a=["a", "b", "c", "a", "b", "d"]
In [33]: list_a
Out[33]: ['a', 'b', 'c', 'a', 'b', 'd']
In [34]: set(list_a)
Out[34]: {'a', 'b', 'c', 'd'}
python列表去重
最新推荐文章于 2024-09-26 11:03:13 发布
In [32]: list_a=["a", "b", "c", "a", "b", "d"]
In [33]: list_a
Out[33]: ['a', 'b', 'c', 'a', 'b', 'd']
In [34]: set(list_a)
Out[34]: {'a', 'b', 'c', 'd'}