摘要: 1.安装第三方模块 pip install xpinyin 2.实现代码如下: 1 from xpinyin import Pinyin 2 3 def my_sort(wordlist): # 指定要排序的列表 4 pin = Pinyin() # 创建汉字转拼音的对象 5 temp = [] # 阅读全文
posted @ 2022-03-31 21:46 叶青IT爱好者 阅读(260) 评论(0) 推荐(0) 编辑