my_list = [1, 2, 2, 3, 3, 3, 4, 5, 5] unique_list = list(set(my_list)) print(unique_list) # 输出 [1, 2, 3, 4, 5]