Code scala 从 url 中读取内容如前文所说,scala的Source类自带各种输入,除了文件,也可以从url中获得数据. 最简单的是Source.fromURL scala> scala.io.Source.fromURL("http://argcv.com").mkString res1: String = <!DOCTYPE html> <html lang="en-US"> <head> <title>argcv | enjoy code, enjoy life.</title> .... (more…) By Yu, 10 years2 years ago