小儿难养剧情简介

","小夫妻的大爱"], axis=1) print('删除特殊符号...') data['content'] = data['content'].str.replace(r'\W', ' ') print('分词...') data['content'] = data['content'].apply(lambda x: ' '.join(jieba.cut(x))) print('保存...') open('data/result.txt', 'w', encoding='utf-8').write(data.to_csv(header=False, index=False, sep=' ', encoding='utf-8')) print('分词结束')