Python: Packaging data is packing into 2 bytes instead of 1 bytes

后端 未结 0 856
终归单人心
终归单人心 2020-11-28 22:16

The code I have right now is


from struct import *

serial_data = pack(\'>HHB\',2500,2400,2)
print("bigendian   ",serial_data)

serial_data = pac         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题