擅长:python、mysql、java
<p>python中有一个struct类<a href="https://docs.python.org/3/library/struct.html" rel="nofollow noreferrer">https://docs.python.org/3/library/struct.html</a></p>
<blockquote>
<p>This module performs conversions between Python values and C structs represented as Python bytes objects.</p>
</blockquote>
<p>您还可以查看包dpkt<a href="https://dpkt.readthedocs.io/en/latest/index.html" rel="nofollow noreferrer">https://dpkt.readthedocs.io/en/latest/index.html</a></p>