Commit 614cbfd5 by BellCodeEditor

save project

parent d1b749ba
Showing with 13 additions and 0 deletions
import matplotlib.pyplot as pit
from wordcloud import WordCloud
from PIL import Image
import numpy as np
text = " "
with open('alice.txt','r',encoing='utf8') as fp:
text = fp.read()
image = np.array(Image.open('alice_mask.pen'))
WordCloud = WordCloud(background_color='white',max_words=1000,mask=image).generate
word.to_file('x.png')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment