是没有换行符的原因,在文末加上这个out.write(System.getProperty("line.separator"));http://blog.csdn.net/chanllen/article/details/10822227