np.logical_and (逻辑与)
Syntax
np.logical_and(x1, x2, *args, **kwargs)
Test
>>> np.logical_and(True...>>> np.logical_and(x>1, x<4)
array([False, False, True, True, False], dtype=bool)
np.logical_or (逻辑或...np.logical_or(x 3)
array([ True, False, False, False, True], dtype=bool)
np.logical_not (逻辑非