parent
a400a9d5ea
commit
154cb36f16
@ -0,0 +1,14 @@
|
||||
import jieba #结巴分词pip install jieba
|
||||
import wordcloud #制作词云图
|
||||
import imageio #读取本地图片,修改词云图形
|
||||
|
||||
f = open('D:/弹幕.txt','r',encoding='UTF-8')
|
||||
lines = f.readlines()
|
||||
for line in lines:
|
||||
if "ai" in line:
|
||||
f1=open('D:/AI.csv','a',encoding='UTF-8')
|
||||
f1.write(line)
|
||||
f.close()
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue