在生成词云图的时候,设置mask后无效,不知道是什么问题,麻烦看一看
img = imread('C:/Users/86178/Desktop/j1.jpg')
b = content.cell(row, column=1).value
cutData = jieba.cut(b, cut_all=False)
word = " ".join(cutData)
wc = WordCloud(width=800, height=600,mode='RGBA',background_color='white', mask=img, font_path = 'C:\Windows\Fonts\STSONG.TTF').generate(word)
plt.imshow(wc)
plt.axis("off")
plt.show()