上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
摘要: x = 10000.0 / 3.0 System.out.printf("%8.2f",x); 效果图: ps: 数字、小数位和小数点每个各占一位,保留后不足给定字符宽度会最前面补空格占位,保留后超出给定字符宽度,输出时忽略给定值 System.out.printf("%15.2f",x); => 阅读全文
posted @ 2024-12-24 14:13 基础狗 阅读(21) 评论(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 基础狗 阅读(92) 评论(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 基础狗 阅读(25) 评论(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 基础狗 阅读(13) 评论(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 基础狗 阅读(23) 评论(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 基础狗 阅读(36) 评论(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)
摘要: str = "/u1D56B"; StringBuilder builder = new StringBuilder(); //首先构建一个空的字符串构建器 char ch = 58; builder.append(ch); //当每次需要添加一部分内容时,就调用append方法。 builder. 阅读全文
posted @ 2024-12-20 09:54 基础狗 阅读(37) 评论(0) 推荐(0)
摘要: Microsoft Windows [版本 10.0.20348.2527] (c) Microsoft Corporation。保留所有权利。 C:\Users\Administrator>scala Welcome to Scala 2.11.12 (Java HotSpot(TM) 64-Bi 阅读全文
posted @ 2024-12-19 20:25 基础狗 阅读(15) 评论(0) 推荐(0)
摘要: 配置文件确认没有错,卸载关停其他组件,只保留java、hadoop和flume,可完成测试 阅读全文
posted @ 2024-12-19 14:44 基础狗 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页