java中System.getProperty("line.separator") 意思

来源:互联网 发布:python class是什么 编辑:程序博客网 时间:2024/06/06 04:32

为排除不同平台的区别:

Java里面有一些转义字符可以用JDK中的一些属性来表示,排除不同平台的区别(Linux Windows Mac等),比如换行符"\n",在JDK中为System.getProperty("line.separator")
0 0