System.out.print("a");——后面没有换行符 System.out.println("b");——后面有换行符 换行符:\r和\n以及\r\n在此处具有相同的效果 转载于:https://www.cnblogs.com/qdwyg2013/p/6489244.html