会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
记录——去繁就简
博客园
首页
新随笔
联系
订阅
管理
2023年4月9日
python 十六进制转换字符
摘要: a = b'\xE6\x88\x91\xE6\x98\xAF\xE8\xAF\xB7\xE6\xB1\x82'print(a.decode('utf-8').encode('utf-8'))print(a.decode('gbk').encode('gbk'))print(a.decode(enco
阅读全文
posted @ 2023-04-09 09:47 记录——去繁就简
阅读(90)
评论(0)
推荐(0)
公告