我对~操作员有点困惑.代码如下:
~
a = 1 ~a #-2 b = 15 ~b #-16
怎么~办?
我想,~a会是这样的:
~a
0001 = a 1110 = ~a
为什么不?
python bit-manipulation
bit-manipulation ×1
python ×1