路径转换

来源:互联网 发布:大数据挖掘软件 编辑:程序博客网 时间:2024/06/05 12:25
public String pathTransform(String path){
String os= System.getProperty("os.name");
if(os.indexOf("Windows") != -1){
path = path;
} else {
path = path.replace("\\","/");
}
return path;
}
0 0
原创粉丝点击