You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
zuyinup
changed the title
批量处理怎么弄呢?就是想导入一个文本,每一行代表一篇文章,将文本转换为拼音。不知为什么老提示
批量处理怎么弄呢?就是想导入一个文本,每一行代表一篇文章,将文本转换为拼音。不知为什么老提示:list index out of range
May 19, 2016
代码如下,报错:list index out of range
from pinyin import PinYin
f = open('1.txt','r')
lines = f.readlines()
for line in lines:
test = PinYin()
test.load_word()
# print(lines)
print "out: %s" % str(test.hanzi2pinyin(string=line))
No description provided.
The text was updated successfully, but these errors were encountered: