def handleLine(self, line):
# ???????
line = line.replace(' ', '')
line = line.replace('\n', '')
line = line.replace('em', '')
# ??
words = jieba.cut(line)
for word in words:
if len(word)<=1:
continue
if word in self.data:
self.data[word] = self.data[word]+1
else:
self.data[word] = 1
评论列表
文章目录