python编码解码
来源:互联网 发布:微信假红包软件生成器 编辑:程序博客网 时间:2024/05/21 09:32
#-*-coding:utf-8-*- #__author:martin#date:2017/10/21s = 'hello可乐'#编码 str类型 ---> 16进制bytes类型b = s.encode('utf8')print(type(b))print(b)#b'hello\xe8\x99\x8e'#解码 16进制bytes类型--->str类型 s_n = str(b,'utf8')print(s_n)
阅读全文
0 0
- python url编码,解码
- python 解码和编码
- Python HTML编码解码
- python 编码与解码
- Python--编码解码
- Python---解码与编码
- python Base64 编码解码
- python编码解码
- python字符编码解码,文件编码解码。
- python 解码base64编码邮件
- Python的编码与解码
- python之字符编码解码
- python 字符串编码与解码
- Python 编码与解码1
- python中的编码解码问题
- Python中的编码与解码
- python 的编码与解码
- 编码与解码(python 经验)
- C# winform 中MessageBox用法大全(附效果图)
- TabLayout+ViewPager
- java.sql.SQLException: 无效的列索引
- 属性动画
- c++ inline函数
- python编码解码
- LeetCode139. Word Break
- 记录Hacker学习发展图
- [CodeVs 1063] 合并果子 ——小根堆
- 51nod 1186 质数检测 V2
- 生活中的PV操作
- MSP-FET430UIF仿真器固件降级问题
- UVA11732 字典树
- solr之本地编译并调试