ID1=list(zip(Brick,BOID)) ID2=list(zip(Brick2,BOID2)) xy,x_ind,y_ind=np.intersect1d(ID1,ID2,assume_unique=True,return_indices=True)
参见[1]