版权声明:此文章为许诗宇所写,如需转载,请写下转载文章的地址 https://blog.csdn.net/xushiyu1996818/article/details/86611949
File.seperator
在 UNIX 系统上,此字段的值为 '/';在 Microsoft Windows 系统上,它为 '\\'。
注意:如果要设置在本系统上的文件路径,则要用FIle.seperator
但是,如果不是设置在本系统,而是在比如ftp服务器的路径,则要用/ 而不是seperator,因为本系统如果是windows,会变成\\