with open('E://hsy_new.txt','r',encoding='utf-8') as w:
t = w.read()
ls = jieba.lcut(t)
text = "".join(ls)
w = wordcloud.WordCloud(
font_path="C:/Windows/Fonts/simfang.ttf",
width=1000,height=800,
background_color='white')
w.generate(text)
w.to_file("E://test.jpg")