摘要: import jieba #打开文件,转换成UTF-8编码 fo=open(r'C:\Users\Shaheen\AppData\Local\Programs\Python\Python36\西游记.txt','r',encoding='utf-8') a=fo.read() fo.close() #断词 words=list(jieba.cut(a)) s=set(words) dic={... 阅读全文
posted @ 2017-09-29 12:21 044潘育珊 阅读(155) 评论(0) 推荐(0) 编辑