📜  将字节转换为字符串 pytgon - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:46.422000             🧑  作者: Mango

代码示例1
# utf-8 is used here because it is a very common encoding, but you
# need to use the encoding your data is actually in.
>>> b"abcde".decode("utf-8") #byteelement.decode("utf-8")
'abcde'