Python Bitwise Operations: Right Shift and AND Explained
This is a bitwise operation in Python, specifically a right-shift and an AND operation.
The number 85196900 is represented in binary as '0b01010001001011000101110100'.
The right-shift operation >> 16 shifts all the bits to the right by 16 positions, resulting in '0b0000000001010001'.
The AND operation & with the number 65535 (which is represented in binary as '0b1111111111111111') keeps only the last 16 bits of the result.
So, the final result of this operation is 81.
原文地址: https://www.cveoy.top/t/topic/l0xT 著作权归作者所有。请勿转载和采集!