1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:
系统相关 时间:
2021-04-23 12:03:54
阅读次数:
0
1、截屏 adb shell screencap -p /sdcard/a.png 2、录屏 adb shell screenrecord /sdcard/a.mp4 ...
分类:
数据库 时间:
2021-04-23 11:57:08
阅读次数:
0
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
说明: break语句:终止并跳出循环体。continue语句:终止当前循环,重新开始一个新的循环。goto语句:跳转到指定位置 。 一,continue语句 class Program { static void Main(string[] args) { for(int i = 1; i <= ...
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:
系统相关 时间:
2021-04-22 16:20:40
阅读次数:
0
Shell工具 cut:可以切割提取指定列\字符\字节的数据 cut可以将文本按列进行划分的文本处理,cut命令逐行度入文本,然后按列划分字段并进行提取,输出等操作 选项参数: -f 提取范围 列号,获取第几列 -d 自定义分隔符 自定义分隔符,默认为制表符 -c 提取范围 以字符为单位进行分割 - ...
分类:
系统相关 时间:
2021-04-22 16:20:19
阅读次数:
0
首发于Enaium的个人博客 不用XML只用注解 首先需要创建6个注解 SQL用于输入SQL语句 @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface SQL { String[] valu ...
分类:
其他好文 时间:
2021-04-22 16:14:47
阅读次数:
0
方法1 select count(1) from sys.objects where name = 'student' 方法2 SELECT table_name FROM information_schema.TABLES WHERE table_name ='student' 程序员阿飞 202 ...
分类:
数据库 时间:
2021-04-22 16:12:38
阅读次数:
0
<select id="queryTableDataForMap" parameterType="String" resultType="map"> ${_parameter}</select>在mybatis中mapper文件中像这样写,你只需要传入一条String格式的sql语句 他就可以直接执 ...
分类:
其他好文 时间:
2021-04-22 16:11:10
阅读次数:
0
初识finally finally子句中的代码是最后执行的,并且是一定会执行的,即使try语句块中的代码出现了异常。 finally子句必须和try一起出现,不能单独使用。执行顺序:try→finally→return。 finally应用场景。 通常在finally语句块中完成资源的释放/关闭。 ...
分类:
其他好文 时间:
2021-04-22 16:08:18
阅读次数:
0