当前位置:网站首页>Scala IO reads data from URLs and other data sources
Scala IO reads data from URLs and other data sources
2022-06-24 23:38:00 【Jue Niu thunder plough hot blade】
import scala.io.Source
object D04_ from URL And other data sources {
def main(args: Array[String]): Unit = {
readFromURL()
// readFromStr()
}
def readFromURL(): Unit = {
val source = Source.fromURL("https://www.itcast.cn/")
val str = source.mkString
println(str)
}
def readFromStr(): Unit = {
val source = Source.fromString(" Black horse programmer ")
val value = source.mkString
println(value)
}
}
边栏推荐
- Binary lookup array subscript
- Redis source code analysis skip list
- 我的为人处事真的有问题吗?
- R语言使用MatchIt包进行倾向性匹配分析、使用match.data函数构建匹配后的样本集合、对匹配后的样本的不同分组对应的目标变量的均值进行Welch双样本t检验分析、双独立样本t检验
- 选择类排序法
- First person singular reading notes
- UNION ALL UNION FULL JOIN
- Selective sort method
- 企业级~uni-app网络请求封装
- Andersen Global借助巴勒斯坦成员公司加强中东平台
猜你喜欢
一文理解OpenStack网络
Harmonyos accessing database instances (3) -- use ORM bee to test how good harmonyos is
Hydropower project construction scheme based on 3D GIS Development
What you must know about time series database!
[basic knowledge] ~ half adder & full adder
Volcano成Spark默认batch调度器
Ningde times will increase RMB 45billion: Hillhouse subscribes RMB 3billion and Zeng Yuqun still controls 23% of the equity
From client to server
[JS] - [array, stack, queue, linked list basics] - Notes
[JS] - [array application] - learning notes
随机推荐
Using ADC to control brushless motor source program STM32 library function
R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses exp function and coef function to obtain the corresponding odds rat
Helix distance of point
去商场逛街
抖音实战~实现App端视频上传与发布
7-8 circular scheduling problem
R语言使用MatchIt包进行倾向性匹配分析、使用match.data函数构建匹配后的样本集合、对匹配后的样本的不同分组对应的目标变量的均值进行Welch双样本t检验分析、双独立样本t检验
throttle-debounce.js:一个小型的防抖节流函数库
还在用 SimpleDateFormat 做时间格式化?小心项目崩掉
[introduction to UVM== > episode_8] ~ sequence and sequencer, sequence hierarchy
[JS] - [linked list - application] - learning notes
7-2 求解买股票问题
2021-2022 China's financial digitalization "new" insight Industry Research Report
今天睡眠质量记录79分
Idea creation module prompt already exists
Morris traversal
Uninstall hero League
UNION ALL UNION FULL JOIN
7-7 求解众数问题
372. chessboard coverage