什么是0xff?

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

你可能感兴趣的:(python)