What does 0xFF mean in Python?
0xFF is a hexadecimal constant which is 11111111 in binary. By using bitwise AND ( & ) with this constant, it leaves only the last 8 bits of the original (in this case, whatever cv2. waitKey(0) is).
就是1111 1111
0xFF是一个十六进制数,等同于二进制的11111111。在Python中,它常用于位运算,特别是bitwiseAND操作。当与cv2.waitKey(0)的结果进行位与操作时,它保留了原数值的最后8位。
What does 0xFF mean in Python?
0xFF is a hexadecimal constant which is 11111111 in binary. By using bitwise AND ( & ) with this constant, it leaves only the last 8 bits of the original (in this case, whatever cv2. waitKey(0) is).
就是1111 1111

被折叠的 条评论
为什么被折叠?