会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
家有娴妻
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2019年5月29日
作业15:编码进阶
摘要: # encode 编码 str ---> bytes s1 = 'alex' s2 = s1.encode('utf-8') s3 = s1.encode('gbk') print(s2) print(s3) m1 = '中国' m2 = m1.encode('utf-8') m3 = m1.encode('gbk') print(m2) print(m3) # py3: # 文件的储存,传输...
阅读全文
posted @ 2019-05-29 00:51 RockData
阅读(82)
评论(0)
推荐(0)
编辑
公告