在Python 3中将字节转换为十六进制字符串的正确方法是什么?
我看到了一种bytes.hex方法,bytes.decode编解码器的主张,并尝试了其他可能的功能,最不惊讶,但没有用.我只想把我的字节作为十六进制!
bytes.hex
bytes.decode
python hex python-3.x
hex ×1
python ×1
python-3.x ×1