V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
pandada8
V2EX  ›  Python

python中有能将汉字转换成拼音的库么

  •  
  •   pandada8 · 2013-06-24 10:54:55 +08:00 via Android · 4470 次点击
    这是一个创建于 3957 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用pelican写博客的时候自动把地址给转换成拼音了…深觉屌炸
    11 条回复    1970-01-01 08:00:00 +08:00
    jjx
        1
    jjx  
       2013-06-24 11:54:37 +08:00
    Perry
        2
    Perry  
       2013-06-24 12:03:55 +08:00 via iPhone
    试试unicodedata
    DH
        3
    DH  
       2013-06-24 12:07:37 +08:00
    slugify 就行
    Perry
        4
    Perry  
       2013-06-24 12:25:13 +08:00
    Perry
        5
    Perry  
       2013-06-24 12:27:00 +08:00
    Perry
        6
    Perry  
       2013-06-24 12:30:10 +08:00
    好吧。。最后一次贴gist:
    http://gist.github.com/5847732
    jerry
        7
    jerry  
       2013-06-24 12:35:49 +08:00
    @jjx 我用Python实现了一次 https://github.com/jiedan/chinese_pinyin
    jjx
        8
    jjx  
       2013-06-24 13:40:35 +08:00
    @jerry 晕,其实我就是想贴你这个来着
    pandada8
        9
    pandada8  
    OP
       2013-06-24 23:08:00 +08:00 via Android
    @jjx
    @Perry
    @DH
    @jerry
    谢谢
    guoqiao
        10
    guoqiao  
       2013-06-25 13:15:51 +08:00
    unidecode挺好使
    kingxsp
        11
    kingxsp  
       2013-06-25 17:10:38 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3797 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:54 · PVG 08:54 · LAX 17:54 · JFK 20:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.