2019年6月2日
摘要: val lines=List("hello tom hello jerry","hello tom hello kitty hello china") //方法一: val wc=lines.flatMap(_.split(" ")).map((_,1)).groupBy(_._1).map(t=>(t._1,t._2.size)).toList.sortBy(_._2)... 阅读全文
posted @ 2019-06-02 18:58 o_0的园子 阅读(520) 评论(0) 推荐(0) 编辑