python字节和字符串相互转换 2019-03-06 笔记 字符串类型 byte 字符串byte_str = b”byte example” str 字符串str_str = “str example” str to bytes 字符串转字节1bytes(str_str, encoding="utf-8") 或 1str_str.encode() bytes to str 字节转字符串1str(byte_str, encoding="utf-8") 或 1byte_str.decode() 前一篇 linux使用apt方式安装mysql5.7 后一篇 nohup命令说明