您的位置: 首页 > IT文章 > python实现列表去重的方法 python实现列表去重的方法 分类: IT文章 • 2024-01-02 14:05:18 >>> l=[1,2,3,4,2,2,2] >>> list(set(l)) [1, 2, 3, 4] >>>