上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
摘要: System.out.printf("%,.2f",10000.0 / 3.0); 效果图: ps: 在分隔符后可以指定字符串长度 System.out.printf("%,10.2f",10000.0 / 3.0); 效果图: 阅读全文
posted @ 2024-12-26 15:48 基础狗 阅读(18) 评论(0) 推荐(0)
摘要: C:\Users\Administrator>scala Welcome to Scala 2.11.12 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_421). Type in expressions for evaluation. Or try 阅读全文
posted @ 2024-12-25 19:27 基础狗 阅读(12) 评论(0) 推荐(0)
摘要: package InputTest; import java.util.Scanner; public class InputTest02 { public static void main(String[] args) { // English(); Chiness(); } public sta 阅读全文
posted @ 2024-12-25 19:05 基础狗 阅读(10) 评论(0) 推荐(0)
摘要: x = 10000.0 / 3.0 System.out.printf("%8.2f",x); 效果图: ps: 数字、小数位和小数点每个各占一位,保留后不足给定字符宽度会最前面补空格占位,保留后超出给定字符宽度,输出时忽略给定值 System.out.printf("%15.2f",x); => 阅读全文
posted @ 2024-12-24 14:13 基础狗 阅读(17) 评论(0) 推荐(0)
摘要: 1.更换yum源 备份(官方停止维护,无所谓了),更改配置文件,清除缓存,建立缓存 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup CentOS-Base.repo # CentOS-Base 阅读全文
posted @ 2024-12-23 15:35 基础狗 阅读(87) 评论(0) 推荐(0)
摘要: 1.内容 python<<pythonoff print("123") pythonoff 2.构建过程 2.1 创建文件 touch test.sh 2.2 添加内容 echo "python<<pythonoff" > test.sh echo "print("123")" >> test.sh 阅读全文
posted @ 2024-12-23 14:07 基础狗 阅读(22) 评论(0) 推荐(0)
摘要: C:\Users\Administrator>scala Welcome to Scala 2.11.12 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_421). Type in expressions for evaluation. Or try 阅读全文
posted @ 2024-12-23 13:38 基础狗 阅读(10) 评论(0) 推荐(0)
摘要: import java.io.Console; public class test { public static void main(String[] args) { Console cons = System.console(); String username = cons.readLine( 阅读全文
posted @ 2024-12-22 17:51 基础狗 阅读(18) 评论(0) 推荐(0)
摘要: package InputTest; import java.util.Scanner; public class InputTest { public static void main(String[] args) { // English(); Chiness(); } public stati 阅读全文
posted @ 2024-12-22 17:26 基础狗 阅读(29) 评论(0) 推荐(0)
摘要: =>builder: :/u1D56B 追加代码点 builder.appendCodePoint(58); => builder: :/u1D56B: 替换代码点 builder.setCharAt(7, (char) 58); => builder: :/u1D56:: 插入字符串 String 阅读全文
posted @ 2024-12-21 15:54 基础狗 阅读(8) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页