https://codeforces.com/contest/1342/problem/D 简单的叙述一下题意:有n个不大于k的数记录在m数组中,现在呢,需要我们将这n个数分组,对每个组的限制是,对于任何1~k的数字X,每组中不小于X的数字的个数不能大于C【X】,C数组输入时给定。现在需要我们计算出 ...
分类:
其他好文 时间:
2020-04-27 19:25:24
阅读次数:
57
A bridge-domain can be associated with only one BVI. However a vrf can contain routes to multiple BVIs. To configure a BVI interface, create it using ...
分类:
其他好文 时间:
2020-04-23 19:28:06
阅读次数:
94
参考资料 http://redisdoc.com/ http://redis.io/commands 连接操作相关的命令 ping:测试连接是否存活如果正常会返回 pong echo:打印 select:切换到指定的数据库,数据库索引号 index 用数字值指定,以 0 作为起始索引值 quit:关 ...
分类:
其他好文 时间:
2020-04-23 12:37:07
阅读次数:
76
if-then语句 if command then commands fi if语句后面接的是命令,我们其它编程语言中,这儿都是接返回布尔值(true,false)的表达式。 在shell脚本的if其实是根据紧跟后面的那个命令的退出状态码来判断是否执行then后面的语句的。 关于退出状态码,你只需要 ...
分类:
系统相关 时间:
2020-04-22 23:05:34
阅读次数:
122
for for循环有两种形式: for-in语句 基本格式如下: for var in list do commands done list代表要循环的值,在每次循环的时候,会把当前的值赋值给var(变量名而已,随意定), 这样在循环体中就可以直接通过$var获取当前值了。 #!/bin/bash ...
分类:
系统相关 时间:
2020-04-22 22:57:08
阅读次数:
80
产品中经常用到加载动图,一般情况呢,我们都会根据UI设计师所给的UI图进行制作,我这里就介绍两种做法,此篇博客只是记录我怎么做的,方便我后续用,也希望能帮到大家。第一种是让UI设计师给一张包含里所有序列帧的大图比如:导入到Unity中选中再将SpriteMode设置改成Multiple,打开SpriteEditor进行编辑第二种是UI设计师把所有序列帧的图都给过来直接用代码实现加载usingSys
分类:
编程语言 时间:
2020-04-21 16:49:56
阅读次数:
130
1. 对于不同的屏幕发布单独的apk https://developer.android.google.cn/training/multiple-apks/screensize 2.多窗口模式 在Android 7.0 或更高版本中运行的所有应用,并且应用默认可调整大小。您还可以为整个应用或特定 A ...
分类:
移动开发 时间:
2020-04-21 15:11:05
阅读次数:
86
IaddedaGlideListfieldcalledGroups(u_groups)atthetemplateform.AddedthefollowingtoACLsys_templateread:u_groupsisnotemptyChangetheanswerinBusine***uleSNCTemplateQuerylikethisvararr_groups=getMyGroups().t
分类:
其他好文 时间:
2020-04-18 15:53:51
阅读次数:
52
What does `set -x` do? Take a look: help sethelp -m set | less set -x enables a mode of the shell where all executed commands are printed to the termi ...
分类:
系统相关 时间:
2020-04-17 23:42:11
阅读次数:
110
尝试了好多方法,最终选择推荐以下这种方法 方法原理: 修改 /etc/sudoers 文件,添加我们普通用户名,即可获得我们的root用户权限 在root 下 vim /etc/sudoers ## Allow root to run any commands anywhere root ALL=( ...
分类:
系统相关 时间:
2020-04-17 16:10:13
阅读次数:
149