如何在 Python 3 中打印没有 b'
前缀的 bytes
字符串?
>>> print(b'hello')
b'hello'
最佳答案
使用解码
:
>>> print(b'hello'.decode())
hello
关于python - 在 Python 3 中打印不带 b' 前缀的字节,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16748083/