import jieba
#1.获取文本
with open('book.txt','r',encoding='UTF-8') as fp:
txt = fp.read()
#2.分词
words = jieba.lcut(txt
import jieba
#1.获取文本
with open('book.txt','r',encoding='UTF-8') as fp:
txt = fp.read()
#2.分词
words = jieba.lcut(txt