【原创】python 简繁体转换
来源:互联网 发布:开淘宝店怎么代销不了 编辑:程序博客网 时间:2024/06/03 20:52
比较不错的简繁体转换 pyjft (百度云盘下载),注意:不能有逗号等特殊符号~~
现在合并到:pyzh
这个就是简繁体转换关键代码
谷歌 code下载pyjft.py。
>>> a=u'飞机飞向蓝天'
>>> res=jft.j2f('gbk','utf8',a.encode( 'gbk')).decode('utf8')
飞机飞向蓝天
>>> res
u'\u98db\u6a5f\u98db\u5411\ u85cd\u5929'
>>> print res
飛機飛向藍天
>>>
from __future__ imports must occur at the beginning of thefile
0 0
- 【原创】python 简繁体转换
- 简繁体转换
- 简繁体转换
- 【原创】 python simplegui
- 【原创】python map
- 【原创】python gevent
- 【原创】python xml处理
- 【原创】python filter函数
- 【原创】python lambda表达式
- 【原创】python sys.stderr
- 【原创】python set处理
- 【原创】python 装饰器
- 【原创】python multiprocess…
- 【原创】python try cat…
- 【原创】python The pac…
- 【原创】python assert 断言
- 【原创】 python reduce表达式
- 【原创】python zip 函数
- 【原创】拯救了一次我的破手机
- 【原创】删除Android预装软件包,…
- 【原创】linux ubuntu12.04&n…
- 【原创】mysql while do…
- 适用小白:为什么要用Jupyter?以及,如何在Linux的Ubuntu 14.04LTS上安装和启动Jupyter Notebook
- 【原创】python 简繁体转换
- 【原创】mysql 正则匹配中文&…
- 【转载】Python 获取网卡设置…
- 【原创】linux使用终端命令执行pyt…
- 【原创】linux ubuntu12.04&n…
- 【原创】linux ubuntu12.04&n…
- 为什么JVM需要 "垃圾回收器" ?
- 【原创】 linux Python&…
- 【转载】 linux Python&…