会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
七月春的七
博客园
首页
新随笔
联系
订阅
管理
2019年11月12日
python中decode和encode区别
摘要: #-*-coding:utf-8import sys'''*首先要搞清楚,字符串在Python内部的表示是unicode编码,因此,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。d
阅读全文
posted @ 2019-11-12 09:10 七七之编程
阅读(1364)
评论(0)
推荐(0)
编辑
公告