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
D14 case语句是多级的if...then...else...fi语句很好的替代方式。它可以让一个条件与多个模式相比较,而且case语句的读写比较方便。 语法: case EXPRESSION in PATTERN1 ) CONSEQUENT-COMMANDS ;; #必须使用 PATTERN2 ...
分类:
系统相关 时间:
2020-05-22 12:48:23
阅读次数:
61
Description Given an array A of integers, return the number of (contiguous, non empty) subarrays that have a sum divisible by K. Example 1: Note: 1 思路 ...
分类:
编程语言 时间:
2020-05-22 12:29:23
阅读次数:
47
条件判断 if语句 if else money = 123 if money > 123: print("OK") else: print("No") if 嵌套 gender = input("??") if gender == "男": age = input("多大") if int(age) ...
分类:
编程语言 时间:
2020-05-22 11:22:52
阅读次数:
71
Jasper 本身是不支持动态数据源的,能用的解决方式是通过 api 自定义数据源,实际操作就是根据条件判断后动态设定 jdbc 的 url、用户名及密码等连接属性。比如: String userName = userDetails.getUsername(); // obtain a connec ...
分类:
Web程序 时间:
2020-05-22 09:55:21
阅读次数:
76
if语句几种形式: 如果条件表达式的结果为真时则执行if内部语句,否则不执行 if(条件判断表达式){ 执行语句; } if(条件判断表达式){ 执行语句; } else{ 执行语句; } if(条件判断表达式){ 执行语句; } else if{ 执行语句; }else{ 执行语句; } ...
分类:
编程语言 时间:
2020-05-22 00:09:40
阅读次数:
227