Projects
View on GitHub
cleverdeng/pinyin.py
About
汉字转拼音,With Python
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalpinyin.py
汉字转拼音,With Python
Example:
from pinyin import PinYin
test = PinYin()
test.load_word()
test.hanzi2pinyin(string='钓鱼岛是中国的')
Out:
test.hanzi2pinyin(string='钓鱼岛是中国的')
['diao', 'yu', 'dao', 'shi', 'zhong', 'guo', 'de']
test.hanzi2pinyin_split(string='钓鱼岛是中国的', split="-")
diao-yu-dao-shi-zhong-guo-de
Explore related projects
Loading…