1. 字符串测试举例 提示:下面的$file并未定义,而$file1 在上面测试中已定义。 范例1:单条件字符串测试: [root@test-1 ~]# file1=/etc/services;file2=/etc/rc.local [root@test-1 ~]# echo $file1 $fil ...
分类:
系统相关 时间:
2020-05-08 18:31:52
阅读次数:
76
1. 整数测试举例范例1:整数条件测试举例 root@test-1 ~]# a1=10;a2=13 [root@test-1 ~]# echo $a1 $a2 10 13 [root@test-1 ~]# [ $a1 -eq $a2 ] && echo 1 || echo 0 #条件不成立,返回为0 ...
分类:
系统相关 时间:
2020-05-08 18:05:05
阅读次数:
80
```//对于一个有向图,连通分量:对于分量中任意两点uv,//必然可以从u走到v,也可以从v走到u//强连通分量(scc):极大连通分量,也就是加上任何一个点之后,都不是连通分量//有向图通过缩点,转化为有向无环图(DAG),拓扑图//缩点是指将所有连通分量缩成一个点//Tarjan算法求scc/... ...
分类:
其他好文 时间:
2020-05-08 18:02:50
阅读次数:
74
import java.time.LocalDate; import java.time.Period; import java.util.Calendar; import java.math.*; public class demo { demo(){ } public void demo1(in ...
分类:
编程语言 时间:
2020-05-08 16:35:24
阅读次数:
79
::@echo offset TDate=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%set TTime=%time:~0,2%%time:~3,2%%time:~6,2%if "%TTime:~0,1%"==" " set TTime=0%time:~1,1%%time:~3 ...
分类:
数据库 时间:
2020-05-08 13:33:01
阅读次数:
83
使用cat+uniq命令 其实就是统计每行重复多少次 格式:uniq [options][file1 [files]] uniq c file file中的重复行输出一次,并在每行前显示重复次数 uniq d file file中的重复行输出一次,但不输出唯一的行 uniq u file 只输出fi ...
分类:
系统相关 时间:
2020-05-08 13:28:17
阅读次数:
280
async down_1() { const { data: res } = await this.$http.get( "5003/sys/file/download?originalName=" + this.originalName_1 + "&" + "remoteFileName=" + ...
分类:
其他好文 时间:
2020-05-08 13:21:09
阅读次数:
225
系统自带的变量 $IFS 内部字段分隔符(Internal Field Separator, IFS)定义一个定界符,默认是空格。 [root@cnblogs ~]# cat test.sh #!/bin/bash IFS=',' for i in `echo "$1"` do echo "$i" ...
分类:
系统相关 时间:
2020-05-08 13:07:36
阅读次数:
75
Modules:可以定义新的模块 官方上说,当我们的应用变的非常复杂时,store对象就有可能变得相当臃肿 为了解决这个问题,Vuex允许我们将store分割成模块(Module), 在这里,每个模块都拥有自己的state、mutations、actions、getters等 写个例子吧: 首先我们 ...
分类:
其他好文 时间:
2020-05-08 12:59:41
阅读次数:
70
The chemical company NS (Nasty Substances) has three factories: one in the Netherlands, one in Belgium and one in Luxembourg. Chemicals are moved betw ...
分类:
其他好文 时间:
2020-05-08 12:56:48
阅读次数:
78