擅长:python、mysql、java
<blockquote>
<p>UPDATE: I want this because I need to convert hh in every \xhh into
int number.</p>
</blockquote>
<pre><code>>>> s = "\x00\x12\xf8\x05\x74\xa2"
>>> [ord(x) for x in list(s)]
[0, 18, 248, 5, 116, 162]
</code></pre>