Tcler 的 Python 学习概要:binary struct

pack and unpack

bin_turple = struct.unpack(format, buffer)

buffer = struct.pack(format, v1, v2, ...)

示例

struct.unpack("64s i q f d ?", buffer)