软件工程作业–java实现四级超纲率=(版本1)=

####第一步,难受,查找四级英语单词大纲。。
找了半天最后都是混杂着其他信息的,只好用R提取了。。提取成果如下。(称为cet)

然后找了几篇四级阅读,格式如下(称为eng):

When one looks back upon the fifteen hundred years that are the life span of the English language, he should be able to notice a number of significant truths. The history of our language has always been a history of constant change—at times a slow, almost imperceptible change, at other times a violent collision between two languages. Our language has always been a living growing organism, it has never been static. Another significant truth that emerges from such a study is that language at all times has been the possession not of one class or group but of many. 『At one extreme it has been the property of the common, ignorant folk, who have used it in the daily business of their living, much as they have used their animals or the kitchen pots and pans.』① At the other extreme it has been the treasure of those who have respected it as an instrument and a sign of civilization, and who have struggled by writing it down to give it some permanence, order, dignity, and if possible, a little beauty.

####第二步,读文件啊。。
对于cet。这么读的。加n是为了拆分数组的时候好拆。

对于eng,这么做的。本来就有回车空格,就不需要回车了。

当然,两个合并,可以这样,读不同文件,自己定义。。

第三步,读入之后,弄成数组之前的处理,先把所有变成小写,再就是,通过正则表达式,拆分成数组。

第四步,啊里。为了减轻工作负担,对eng去重,接着排序。

第五步,计算超纲率。。

第六步,输出。

文章知识点与官方知识档案匹配,可进一步学习相关知识Java技能树首页概览91719 人正在系统学习中

来源:昵称sch

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2017年8月3日
下一篇 2017年8月3日

相关推荐