Python Everyday 68: WordCloud

Today, I will show how to create a word cloud based on a .txt file and an image. In this sample, we use the fiction to generate the word cloud, and use a fight club image to get the color scheme. The output image as shown as follow:

fightclub
wordcloud

Now, here is the code, try it.