摘要:
词频:单词出现的次数 f = open(r'D:\python\z','r',encoding='utf8') data = f.read().lower() data_split = data.split(' ') count_dict = {} for word in data_split: i 阅读全文
摘要:
词云的生成 import wordcloud import imageio mask = imageio.imread(r"D:\python\7.17\test7.png") 导入图片 f = open(r'D:\python\z', 'r', encoding='utf8') 打开文档 data 阅读全文