摘要: 1 import jieba 2 txt = open("D:\作业\python 作业\jieba分词\红楼梦.txt","r",encoding = 'ansi').read() 3 words = jieba.lcut(txt) #精确模式进行分词 4 count = {} #创建空字典 5 阅读全文
posted @ 2021-11-13 20:32 兴奋的雪鹰 阅读(319) 评论(0) 推荐(0)