arrarray([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])arr1array([0, 1, 2, 3, 4])np.intersect1d(arr,arr1)#计算数组ARR ARR1的交集,并排序array([0, 1, 2, 3, 4])np.union1d(arr,arr1)#计算数组ARR ARR1的并集,并排序array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])# np.setdiff1d(arr,arr1)#计算差集:在ARRR 中但不在A