squ*_*uid 33
简答:是的
参考:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.invert.html
注意:
计算输入数组中整数的基础二进制表示的逐位NOT.这个ufunc实现了C/Python操作符〜.
和
bitwise_not是invert的别名:
>> np.bitwise_not is np.invert
>> True
Run Code Online (Sandbox Code Playgroud)