六狼论坛's Archiver
首页
›
os
› 回车,换行
85977328
发表于 2013-1-15 02:27:36
回车,换行
\r 回车 Carriage Return
\n 新行 New Line
但是都会造成换行
使用System.getProperty("line.separator")来获取当前OS的换行符
各系统取得的值
\r Mac
\n Unix/Linux
\r\n Windows
页:
[1]
查看完整版本:
回车,换行