数据处理 计算文本中每个单词的使用频率,并从高到低进行排序 from string import punctuation #打开数据导入 text = open('text.txt') def count(text): dic = dict() #创建新字典 for line in text