首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
Scala判断本地文件路径存不存在
Scala判断本地文件路径存不存在
mac
2024-05-28
59
val path="F:\\test\\one.txt" val file=new File(path) //如果文件存在 if(file.exists()) { println("存在!") }else{ println("不存在!") }
转载请注明原文地址: https://mac.8miu.com/read-492726.html
最新回复
(
0
)