JAVA有些细节,如操作系统的分隔符等,要注意,提高代码的可移植性。 System.getProperty("os.name") File.separator } System.getProperty("line.separator");