Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 338 Bytes

README.rst

File metadata and controls

24 lines (16 loc) · 338 Bytes

Pinyin

https://travis-ci.org/lxyu/pinyin.png?branch=master

Translate chinese chars to pinyin based on Mandarin.dat

Install

$ pip install pinyin

Usage

>>> import pinyin
>>> pinyin.get(u'你好')
'nihao'
>>> pinyin.get_initial(u'你好')
'n h'