lxyu / pinyin

A simple python script to translate chinese to pinyin based on Mandarin.dat
http://lxyu.github.io/pinyin
MIT License
210 stars 47 forks source link

u -> v的奇怪现象,如何理解 #24

Open zcmiao190 opened 5 years ago

zcmiao190 commented 5 years ago

测试

In [4]:  pinyin.get('战略')
Out[4]: 'zhànlvè'

In [13]: pinyin.get("战略", format='strip', delimiter=" ")
Out[13]: 'zhan lve'

我想得到zhan lue 我应该如何改正?

wyz23x2 commented 4 years ago

后者其实可以直接.replace('v', 'ü')