str-bytes:str.encode()编码
bytes-str:bytes.decode()解码
或:
a='hehe'
b=bytes(a,encoding='utf-8')
#b=b'hehe'