# bytes object
b = b'n02509815'
# str object
s = "example"
# str to bytes编码
str.encode(s)#此时和b相等
# bytes to str解码
bytes.decode(b)#此时和s相等
# bytes object
b = b'n02509815'
# str object
s = "example"
# str to bytes编码
str.encode(s)#此时和b相等
# bytes to str解码
bytes.decode(b)#此时和s相等