创建一个方法 方法创建 调用 输出结果 创建方法 不用变量类型 添加要添加的值 实现方法 最后调用 所有要使用的变量都要带星号(因为可能无法返回值或者转码错误) ...
分类:
其他好文 时间:
2020-10-05 22:17:51
阅读次数:
38
分数和 描述 计算 1+1/2+1/3+1/4+……1/n 输入 一行。一个整数n。 输出 输出结果,结果保留2位小数。 输入样例 1 5 输出样例 1 2.28 输入样例 2 100 输出样例 2 5.19 这题用到for循环,定义一个变量n,i<=n;i++。然后再循环中累加1/i。输出保留两位 ...
分类:
其他好文 时间:
2020-09-17 23:52:55
阅读次数:
31
hive是基于Hadoop的一个数据仓库工具,用来进行数据的ETL,这是一种可以存储、查询和分析存储在Hadoop中的大规模数据的机制。hive能将结构化的数据文件映射为一张数据库表,并提供SQL查询功能。HiveSQL是一种类SQL语言,与关系型数据库所支持的SQL语法存在微小的差异。本文对比MySQL和Hive所支持的SQL语法,发现相同的SQL语句在Hive和MySQL中输出结果的会有所不同
分类:
数据库 时间:
2020-09-17 23:41:17
阅读次数:
49
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:41
阅读次数:
32
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:20
阅读次数:
33
package com.test; import java.util.LinkedList; import java.util.List; import java.util.concurrent.*; public class ThreadPoolExecutorTest2 { public sta ...
分类:
编程语言 时间:
2020-08-25 18:46:49
阅读次数:
118
goshell执行优化版+输出结果为table格式packagemainimport("fmt""github.com/modood/table""golang.org/x/crypto/ssh""io/ioutil""net""time")funcconnect(user,password,host,keystring,portint,cipherList[]string)(*ssh.Sessi
分类:
系统相关 时间:
2020-08-25 15:55:00
阅读次数:
59
29、下列代码能否正常运行,如果能够正常运行,输出结果是什么 D public class TestClass { public static void main(String[] args) { int num1=5; int num2=5; class InnerClass{ public in ...
分类:
其他好文 时间:
2020-08-06 09:22:32
阅读次数:
48
1.FORMAT函数在mysql中是数据内容格式化的,格式化后得到结果:###,###,#####。 SELECT FORMAT(100000,2); 输出结果: 100,000.00 2.可以格式化数据为整数或者浮点数。 select format(100.31111,2); 输出结果: 100. ...
分类:
数据库 时间:
2020-08-05 19:46:29
阅读次数:
84