printf:格式化输出(使用指定格式字符串和参数将格式化的字符串写入此输出流的便捷方法)。print:打印。println:打印,然后终止该行。 转载于:https://my.oschina.net/u/3175971/blog/827388