比较简单没什么好说的: list_1 = [1,2,3,4,6,3,2,5,7,8,2,1] list_1 = set(list_1) list_1.add(999) list_2 = set([2,3,444,5,1]) print(list_1,list_2) list_3 = [1,3,7] list_3 = set(list_3) list_4 = [2,5,6] list_4 = set(list_4) print(list_1.intersection(list_2)) print(