Skip to content

Rockheader/pypinyin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

python 取汉字的拼音首字母

代码修改自:
http://wangwei007.blog.51cto.com/68019/983289
但这个版本有BUG, 某些T发音的汉字,比如'太','他','它'等返回的是s, 这里有修正

取汉字字符串的首字母,比如
get_pinyin_letter("我是汉字")
Output: 'wshz'

About

取汉字的首字母

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages