\r\n不好使的话,用下面这个,跟平台无关 System.getProperty("line.separator") 转载于:https://blog.51cto.com/smilezhuolin/1311146