python set所用后列表不改变里面内容排序时间:2022-12-31 19:22:52 my_list = [1,2,1,54,5,64,4681,4,676] my_list_two = list(set(my_list)) my_list_two.sort(key = my_list) print(my_list_two)