可以使用以下方法删除列表中的重复值:
original_list = [1, 2, 3, 3, 4, 5, 5]
unique_list = list(set(original_list))
print(unique_list)
original_list = [1, 2, 3, 3, 4, 5, 5]
unique_list = []
[unique_list.append(x) for x in original_list if x not in unique_list]
print(unique_list)
from collections import Counter
original_list = [1, 2, 3, 3, 4, 5, 5]
counter = Counter(original_list)
unique_list = [key for key, value in counter.items() if value == 1]
print(unique_list)