资源说明:>>> “hello”.encode(“hex”) ‘68656c6c6f’
相应的还可以
>>> ‘68656c6c6f’.decode(“hex”) ‘hello’
查了一下手册,还有这些codec可用
Codec
Aliases
Operand type
Purpose
base64_codec
base64, base-64
byte string
Convert operand to MIME base64
bz2_codec
bz2
byte string
Compress the operand using bz2
hex_codec
hex
byte st
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。