摘要: 相关定义语法 a = b"Hello, world!" # bytes object b = "Hello, world!" # str object 字符串转字节 str --> bytes # 字符串转字节 str --> bytes print(str.encode(b)) # 默认 enco 阅读全文
posted @ 2021-11-09 10:32 FreeK0x00 阅读(185) 评论(0) 推荐(1) 编辑