Python 解析变长结构体

Frytea at 
最近接到一个需求,需要使用 Python 解析 C 来的数据包,而数据包中的格式是通过如下结构体定义的:typedef struct msg_t{ int oid; int msg_...……