在Python中,如何读取二进制文件并循环遍历该文件的每个字节?
python binary file-io
我正在通过串口从一块硬件上读取16位整数.
使用Python,我如何才能正确地获得LSB和MSB,并让Python理解它是一个我正在摆弄的16位有符号整数,而不仅仅是两个字节的数据?
python integer
python ×2
binary ×1
file-io ×1
integer ×1