摘要: 只作为后续的参照物,不想误人子弟~ 阅读全文
posted @ 2020-12-15 17:58 清风吹拂啊狂风肆虐 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 参考原文 声明变量: a = b"Hello World" #字节 b = "Hello World" #字符串 转换自如: #字符串转字节的三种方式 print(str.encode(b)) #默认encoding="utf-8" print(bytes(b,encoding="utf-8")) 阅读全文
posted @ 2020-12-15 15:30 清风吹拂啊狂风肆虐 阅读(400) 评论(0) 推荐(0) 编辑