擅长:python、mysql、java
<p>只需使用<code>utf-8</code>(默认值)来<a href="https://docs.python.org/3.6/library/stdtypes.html#bytes.decode" rel="nofollow noreferrer">^{<cd1>}</a>它们。您可以在Python的<a href="https://docs.python.org/3.6/howto/unicode.html" rel="nofollow noreferrer">Unicode howto</a>中阅读更多关于字符编码的内容</p>
<pre><code>b'command\xc5\xabcor'.decode() # 'commandūcor'
b'command\xc5\xabc\xc4\x81ris'.decode() # 'commandūcāris'
</code></pre>