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.
Changed in version 3.7: bytearray.fromhex() now skips all ASCII whitespace in the string, not just spaces.
我可以使用Python 3.9,我得到以下输出:
你确定你的档案里没有其他东西,或者我不知道。。。尝试Ctrl+a并删除全部,然后重写
51
对我来说,在Python 3.8.5上也可以很好地工作。我猜在1号之后你会有一条新线。根据以下文件,3.7版中的行为发生了变化:
相关问题 更多 >
编程相关推荐