Python-打包二进制文件

95 阅读1分钟
  • 使用
import struct
data=struct.pack('>i4sh',data)
values=struct.unpack('>i4sh',data)