python 显示unicode字符问题
2015-07-09 09:41
507 查看
1. s = eval("u"+ "‘"+ "\u56c3\u67e4" + "'")
2.s = '\u56c3\u67e4'
text = "".join(unichr(int(c, 16)) for c in s.split('\u')[1:])
2.s = '\u56c3\u67e4'
text = "".join(unichr(int(c, 16)) for c in s.split('\u')[1:])
相关文章推荐
- python获取局域网占带宽最大3个ip的方法
- python实现自动重启本程序的方法
- Python下opencv使用笔记(四)(图像的阈值处理)
- Python 收集Twitter时间序列数据
- Python version 2.7 required, which was not found in the registry
- Python: Queue class
- Python: Stack class
- python,dict的setdefault方法
- numpy中的broadcast
- Python内存管理机制
- python compile、eval、exec内建函数
- Windows7下搭建Eclipse+Python开发环境
- 《Python学习手册》学习笔记——第4章
- python实现自动重启本程序的方法
- python实现用户登陆邮件通知的方法
- Python实现文件按照日期命名的方法
- Python基于checksum计算文件是否相同的方法
- python查看zip包中文件及大小的方法
- Python使用turtule画五角星的方法
- python简单猜数游戏实例