numpy高级索引 布尔值索引 name_arr = np.array(["bob","joe","will","bob","joe","will","joe"]) rnd_arr = np_random.randn(7,4) print(rnd_arr) print(name_arr == "bob") #[ True False False True False numpy.ndarray的赋值操作 ...