📜  字符串前的 python b - Python 代码示例

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

代码示例1
# It means it's a byte string.
# Which means it'll just print b'string' if you try to print it out
string = b'Random string'
print(string)
string_without_b = string.decode()
print(string_without_b)