擅长:python、mysql、java
<p>这种差异与每个字符在utf-8中表示的位/字节数有关。你知道吗</p>
<blockquote>
<p>For any character equal to or below 127 (hex 0x7F), the UTF-8
representation is one byte. It is just the lowest 7 bits of the full
unicode value. This is also the same as the ASCII value.</p>
<p>For characters equal to or below 2047 (hex 0x07FF), the UTF-8
representation is spread across two bytes. The first byte will have
the two high bits set and the third bit clear (i.e. 0xC2 to 0xDF). The
second byte will have the top bit set and the second bit clear (i.e.
0x80 to 0xBF).</p>
</blockquote>
<p>有更多关于这个<a href="https://www.fileformat.info/info/unicode/utf8.htm" rel="nofollow noreferrer">here</a>的信息。你知道吗</p>
<p>如果您想了解Python如何使用这些值的更多信息,<a href="https://docs.python.org/3/library/stdtypes.html#bytes" rel="nofollow noreferrer">check out here</a>。你知道吗</p>