擅长:python、mysql、java
<p>对我来说,在Python 3.8.5上也可以很好地工作。我猜在1号之后你会有一条新线。根据以下文件,3.7版中的行为发生了变化:</p>
<blockquote>
<p>classmethod fromhex(string)
This bytearray class method returns bytearray object, decoding the given string object. The string must contain two hexadecimal digits per byte, with ASCII whitespace being ignored.</p>
</blockquote>
<blockquote>
<p>Changed in version 3.7: bytearray.fromhex() now skips all ASCII whitespace in the string, not just spaces.</p>
</blockquote>