object Test { def main(args: Array[String]) { try { val f = new FileReader("input.txt") } catch { case ex: FileNotFoundException =>{ println("Missing ...
分类:
其他好文 时间:
2020-05-24 22:31:48
阅读次数:
82
```shell #!/bin/bash case $1 in "start"){ for i in hadoop120 hadoop121 hadoop 122 do echo "************$i*************" ssh $i "/.../kafka/bin/kafka-s... ...
分类:
其他好文 时间:
2020-05-24 21:00:57
阅读次数:
111
Mantel test 是对两个矩阵相关关系的检验,由Nathan Mantel在1976年提出。之所以抛开相关系数发展这样一种方法,是因为相关系数只能处理两列数据之间的相关性,而在面对两个矩阵之间的相关性时就束手无策。Mantel检验专治这种不服。 这种方法多用于生态学上,不同的样本case对应不 ...
分类:
其他好文 时间:
2020-05-24 16:23:41
阅读次数:
111
今天对之前的界面进行了相应的美化,去掉了之前的那些花花绿绿。运行的截图如下: 然后准备弄一下关于天气方面的东西。首次实现的代码简单贴出来。如下 : private Handler handler = new Handler() { public void handleMessage(Message ...
分类:
其他好文 时间:
2020-05-24 00:12:51
阅读次数:
52
if语句 注意:当把then和 if 或 elif 写到一行的时候,要加分号隔开 在命令行中的写法: test命令详解:https://www.runoob.com/linux/linux-shell-test.html for循环 在终端的写法: while循环 当 until循环 直到 case ...
分类:
系统相关 时间:
2020-05-23 20:45:14
阅读次数:
79
java基础语法 注释 单行注释 // 多行注释 /* content */ 文档注释 /** this is javadoc comment */ 标识符 关键字 Abstract assert boolean break byte case..... 不可作为变量名或方法名 数据类型 强类型语言 ...
分类:
编程语言 时间:
2020-05-23 09:52:17
阅读次数:
52
1.hashmap ,初始长度为16 2.mysql行转列 初始,如下 要求查询之后结果如下 SQL语句: select xm, SUM(case kecheng when '语文' then fenshu else 0 end) as '语文', SUM(case kecheng when '数学 ...
分类:
其他好文 时间:
2020-05-22 19:26:35
阅读次数:
51
在有很多的if-then-else语句的情况下,go语言可以写成: package main import ( "fmt" "time" ) func main() { t := time.Now() switch true{ case t.Hour() < 12: fmt.Println("Goo ...
分类:
其他好文 时间:
2020-05-22 17:22:15
阅读次数:
63
互交反馈 export function myAlert(e,text,icon,mask){ if(!icon){icon="none"} switch (e) { case 0: uni.showToast({//消息提示框。 title:text, mask:mask, icon:icon, ...
分类:
其他好文 时间:
2020-05-22 17:04:25
阅读次数:
63
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <ctype.h> 4 #include <string.h> 5 typedef int ElemType; 6 typedef struct stack{ 7 ElemType *item ...
分类:
编程语言 时间:
2020-05-22 12:50:08
阅读次数:
41