按位运算 >>> 在 python?
Bitwise operation >>> in python?
我收到一段用java写的代码,使用了操作>>>
,快速搜索后,我发现它"shifts a zero into the leftmost position", but I could not find a equal operation in python。
以下代码在python中的类似操作是什么?
((CRC & 0xFF00) >>> 8)
据我所知,python 的 >>
正是这样做的(java 的 >>>
所做的)。 &
与 java 中的 python 相同。
(CRC & 0xFF00) >> 8
我收到一段用java写的代码,使用了操作>>>
,快速搜索后,我发现它"shifts a zero into the leftmost position", but I could not find a equal operation in python。
以下代码在python中的类似操作是什么?
((CRC & 0xFF00) >>> 8)
据我所知,python 的 >>
正是这样做的(java 的 >>>
所做的)。 &
与 java 中的 python 相同。
(CRC & 0xFF00) >> 8