给现有代码来改

搜到的示例代码

wave_mask = np.array(Image.open( "wave.jpg"))

wordcloud = WordCloud(mask=wave_mask).generate(text)

plt.imshow(wordcloud, interpolation="bilinear")