python——快速计算词频

这几天看到一位同事的代码,方法以下:python def cut_word(body): temp_dict={} if body is not None: temp=jieba.cut(body) for t in temp: temp_dict[t]=1 else: pass return
相关文章
相关标签/搜索