快速统计文本文件中的行数( StreamReader.ReadLine() ): 测试代码如下: //读取txt文件中总行数的方法 public static int requestMethod(String _fileName) { Stopwatch sw = new Stopwatch(); var path = _fileName; ; //按行读取 sw.Restart(); using (var sr = new StreamReader(path)) { var ls = "&qu…
1. 要求: 给定一篇纯英文的文本,统计其中回文单词的比列,并输出其中的回文单词,文本数据如下: This is Everyday Grammar. I am Madam Lucija And I am Kaveh. Why the title, Lucija? Well, it is a special word. Madam? Yeah, maybe I should spell it for you forward or backward? I am lost. The word Mada…