|
发表于 2017-2-15 16:20:35
|
显示全部楼层
多谢。前一个问题解决了。现在又有如下报错:
Building prefix dict from C:\Users\free\AppData\Local\Programs\Python\Python36\lib\site-packages\jieba\dict.txt ...
Loading model from cache C:\Users\free\AppData\Local\Temp\jieba.cache
Loading model cost 1.2564444541931152 seconds.
Prefix dict has been built succesfully.
Traceback (most recent call last):
File "D:\test\python\3k.py", line 18, in <module>
f.write(each[0].encode("utf-8") + "," + str(each[1]) +"\n")
TypeError: can't concat bytes to str |
|