关于在windows下使用pycharm开发Django进入admin页面时弹出python已停止运行
可能是Django版本问题
卸载安装
使用pip命令来 卸载 Django
pip uninstall django
import wordcloud
file = open(r"D:\PyCharm实例\抓数据\最多收藏.txt",encoding="utf-8")
text = file.read()
wc = wordcloud.WordCloud()
wc.generate(text)
image = wc.to_image()
#stopwords = {" "}
#wc = wordcloud.WordCloud(font_path=r"D:\PyCharm实例\抓数据\STSONG.TTF",stopwords=stopwords)
wc = wordcloud.WordCloud(font_path=r"D:\PyCharm实例\抓数据\STSONG.TTF")
wc.generate(text)
image = wc.to_image()
image.show()
https://blog.csdn.net/weixin_43206161