bool转化为01
array = np.array([True, False])array.astype(int)
01-> bool
b = np.array([1,0,1,0,0])b.astype(bool)``