import jieba
import wordcloud
with open("C://Users/86181/Desktop/999999999homework/test/调查.txt","r",encoding="utf-8") as f:
t=f.read
ls=jieba.lcut(t)
txt=" ",join(ls)
w=wordcloud.wordcloud(font_path="Elephant.TTF")
w.generate(txt)
w.to_file("w1.png")
代码和要打开的文件放在一个文件夹下了,为什么打不开