analyse.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:lyricswordcloud 作者: qwertyyb 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号