s = [1,2,3,3,4,2] s1 = [1,3,44,5] uni = np.unique(s) #唯一值 inld = np.intersect1d(s,s1) #交集 unld = np.union1d(s,s1) #并集