📅  最后修改于: 2022-03-11 14:45:52.102000             🧑  作者: Mango
import numpy as np
c = np.array(set(a).symmetric_difference(b))
#Pure numpy
c = np.setdiff1d(np.union1d(a, b), np.intersect1d(a, b))