![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
scala
heruilong1988
喜欢动漫 排球
展开
-
scala 读写文本设置字符编码
1. val lb = Source.fromFile(filePath,"GBK").getLines().toArray2. val writer = new PrintWriter(new File(filePath), "gbk")原创 2014-06-03 15:49:59 · 3746 阅读 · 0 评论 -
利用scala处理xml格式的地铁数据
package hrl.testimport java.io._object XMLParserTest { def main(args: Array[String]): Unit = { val s = fromSubwayCardXMLToStr("subway.xml") writeToFile("processed.xml", s)原创 2014-05-23 13:34:38 · 765 阅读 · 0 评论 -
scala_lda代码
在参考了Daichi Mochihashi原创 2014-05-27 13:57:32 · 1527 阅读 · 1 评论