摘要:
额。。。。最近被python的数据类型折腾得有点够呛了。。。struct的pack和unpack可以解决很多和C兼容的数据类型问题,但是有很多trick...pack可以把一个C语言类似struct的结构转换成一个python的string数据结构,有了str结构,就可以进行write操作什么的了。from python help The optional first format char indicates byte order, size and alignment: @: native order, size & alignment (default) =: native or 阅读全文