在处理列表时使用set()函数去除重复项。
示例代码:
lst = [1, 2, 3, 1, 2, 4] unique_lst = set(lst) print(unique_lst) # {1, 2, 3, 4}
上一篇:包含重复单元格的匹配行
下一篇:包含重复元素 II