擅长:python、mysql、java
<p>怎么样</p>
<p><code>>>> a='\x1d\x00\x13\x00\x27\x00\x3b\x00\x45\x00\x31\x00\x4f\x00'</code></p>
<p><code>>>> struct.unpack('<%dH' % (len(a) / 2), a)</code></p>
<p><code>(29, 19, 39, 59, 69, 49, 79)</code>?</p>
<p>根据<a href="http://docs.python.org/library/struct.html" rel="nofollow" title="struct">struct</a>文档,似乎需要使用<code><</code>来指定小尾数。</p>