Python读取txt文件,并统计英文单词出现次数 读取txt文件,一篇英文文章,统计该文章中某个单词的出现次数。 ''' 读取txt文件,一篇英文文章,统计该文章中某个单词的出现次数。 ''' with open('article.txt', 'r', encoding='gbk') as file: article = file.read() word