2024年8月20日
摘要: // 格式化输出 public class Main { public static void main(String[] args) { double d = 3.1415926; System.out.printf("%.2f\n", d); // 显示两位小数3.14 System.out.p 阅读全文
posted @ 2024-08-20 09:34 发奋览尽天下书 阅读(32) 评论(0) 推荐(0)