We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In [20]: p = pinyin('人家才刚学会中文。。这么快就要学2外呀', style=3)
In [21]: p Out[21]: [['r'], ['j'], ['c'], ['g'], ['x'], ['h'], ['zh'], [''], ['。。'], ['zh'], ['m'], ['k'], ['j'], [''], ['x'], ['2'], [''], ['']]
The text was updated successfully, but these errors were encountered:
@onsunsl 因为 y, w 不是声母. 详见 #27
y
w
Sorry, something went wrong.
你可能需要的是 style=pypinyin.FIRST_LETTER:
style=pypinyin.FIRST_LETTER
In [2]: p = pypinyin.pinyin('人家才刚学会中文。。这么快就要学2外呀', style=pypinyin.FIRST_LETTER) In [3]: p Out[3]: [['r'], ['j'], ['c'], ['g'], ['x'], ['h'], ['z'], ['w'], ['。。'], ['z'], ['m'], ['k'], ['j'], ['y'], ['x'], ['2'], ['w'], ['y']]
No branches or pull requests
In [20]: p = pinyin('人家才刚学会中文。。这么快就要学2外呀', style=3)
In [21]: p
Out[21]:
[['r'],
['j'],
['c'],
['g'],
['x'],
['h'],
['zh'],
[''],
['。。'],
['zh'],
['m'],
['k'],
['j'],
[''],
['x'],
['2'],
[''],
['']]
The text was updated successfully, but these errors were encountered: