NumPy参考 >例行程序 >String operations > numpy.char.not_equal
numpy.char.
not_equal
按元素返回(x1!= x2)。
与numpy.not_equal相比,此比较是通过首先从字符串末尾去除空格字符来执行的。提供此行为是为了与numarray向后兼容。
numpy.not_equal
具有相同形状的输入数组。
输出布尔数组,如果x1和x2是标量,则输出单个布尔。
也可以看看
equal,greater_equal,less_equal,greater,less
equal
greater_equal
less_equal
greater
less