来源:System.out.printf()的使用方法 double和float都是 %f int和long都是 %d 想要在printf里打印特殊字符’%’ 得写成%%(两个%号) 想要打印其他特殊字符的话在这个特殊字符前加个转移字符’\'就行