python编码问题 decode('unicode-escape')
2015-09-03 15:17
447 查看
任意编码的字符串,如果内容是unicode码,如:‘\u53eb\u6211’,使用decode('unicode-escape')命令,对字符串内容按照unicode解码后得到其对应的汉字。
相关文章推荐
- python2.7学习笔记(8) ——模块
- IPython基础使用_Round2
- Python的内建常量
- Python的builtins模块
- 在Ubuntu 14.04 64bit下用Python搭建数据科学研究环境
- pycharm templates 设置
- 使用Python脚本获取指定格式文件列表的方法
- 系统性能信息模块篇psutil之获取系统性能信息
- Python学习----函数式编程
- Python2.7生成大连交通大学IPTV播放列表
- Python3.4安装日记
- python核心编程(第二版)习题_第三章
- Python性能优化的20条建议
- Python
- #用Python直接写UTF-8文本文件
- Python开发环境搭建
- Python中的元类(metaclass)
- python 字符串转换,mysql插入带引号字符串,获取html纯文字
- Python资料合集
- Python-BlogServer博客-Django博客效果