pzhxbz / code-review-task-1

融核软工坊CodeReview任务1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

融核软工坊任务1

写一个程序来计算一个文本文件 words.txt 中每个单词出现的频率。
为了保持简单,假设:

  • words.txt 只包含小写字母和空格
  • 每个单词只包含小写字母
  • 单词之间由一个或多个空格分开

举个例子,假设 words.txt 包含以下内容:

the day is sunny the the
the sunny is is

你的程序应当输出如下,按频率倒序排序:

the 4
is 3
sunny 2
day 1

提交方式

请您Fork本项目,然后将代码Clone到本地,进行开发,将您的代码Push到您Fork了的项目里
当您完成作业后,发一个Pull Request到本项目里

自学资料

About

融核软工坊CodeReview任务1


Languages

Language:Python 100.0%