这条线如何运作?
据我所知,cv2.waitKey(number)对于所有int数字的输出都是-1,并且0xff是一个等于255十进制数的十六进制数。
cv2.waitKey(number)
int
-1
0xff
255
-1 & 0xff等于255十进制数。
-1 & 0xff
此外,ord('q')等于113。
ord('q')
113
但是现在,我不知道为什么255 == 113?
255 == 113
python python-3.x opencv-python
opencv-python ×1
python ×1
python-3.x ×1