摘要: 编码与解码 # 字符串编码为字节 text = "你好,燕闪硕!我在测试!" utf8_bytes = text.encode("utf-8") gbk_bytes = text.encode("gbk") print(f"UTF-8编码: {utf8_bytes}") print(f"GBK编码: 阅读全文
posted @ 2025-12-05 10:29 燕闪硕 阅读(5) 评论(0) 推荐(0)