是否从Python 3.3中排除了十六进制编解码器?当我写代码
>>> s="Hallo"
>>> s.encode('hex')
Traceback (most recent call last):
File "<pyshell#24>", line 1, in <module>
s.encode('hex')
LookupError: unknown encoding: hex
Run Code Online (Sandbox Code Playgroud)
那是什么意思?我知道binascii.hexlify()但仍然.encode()方法很好!有什么建议吗?