词云图 from os import path from PIL import Image import numpy as np import matplotlib.pyplot as plt from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator import jieba text = open(path.join(r'new.txt'),encoding='utf-8').read() wordlist = jieba.