摘要: 输出的时候排列顺序是从多到少,需要去除txt中的特殊符号,注意是英文txt文件 用来自制词汇包的hhh import refrom collections import Counter def count_words(file_path): # 读取文本文件内容 with open(file_pat 阅读全文
posted @ 2024-01-30 19:02 简简简 阅读(531) 评论(0) 推荐(0)