边界填充 涉及到的函数: copyMakeBorder(src, top, bottom, left, right, borderType, dst=None, value=None) 其中,填充类型borderType主要的有一下四种类型: BORDER_CONSTANT :可以用指定的像素去填充 ...
分类:
其他好文 时间:
2021-04-20 14:56:18
阅读次数:
0
bash特殊变量 变量 含义 $0 函数名 \(n | n>=1,表示第一个、第二个、第n个参数、\)(10) $@ 全部参数 $* 全部参数 $# 参数个数 $_ 上一个命令的最后一个参数 $$ 当前shell进程ID $? 上一个命令的返回值 ...
分类:
其他好文 时间:
2021-04-20 14:55:25
阅读次数:
0
在/etc/profile.d目录里下新建 shell脚本 (设置alias别名命令的功能) 让新建的别名生效 设置完成后之际可以使用别名 gj 命令 执行poweroff一样效果的 ...
分类:
其他好文 时间:
2021-04-20 14:33:22
阅读次数:
0
1、编写脚本 createuser.sh,实现如下功能:使用一个用户名作为参数,如果 指定参数的用户存在,就显示其存在,否则添加之;显示添加的用户的id号等信息 read -p " input the user: " USER if id $USER &> /dev/null ; then echo ...
分类:
系统相关 时间:
2021-04-20 14:31:15
阅读次数:
0
前端 html <!-- 搜索 --> <div style="margin-top: 15px"> <el-select style="width: 150px" v-model="select" placeholder="请选择"> <el-option label="歌手列表" value=" ...
分类:
编程语言 时间:
2021-04-20 14:07:21
阅读次数:
0
通过nginx -t获得 nginx=`nginx -t 2>&1 | grep configuration` if [ ! -z "$nginx" ];then nginxtmp="${nginx#*file}" nginxf="${nginxtmp%test*}" echo $nginxf fi ...
分类:
系统相关 时间:
2021-04-19 15:38:16
阅读次数:
0
Explorer.EXE该文件没有与之关联的应用来执行该操作。请安装应用,若已经安装应用,请在"默认应用设置"页面中创建关联。 添加如下注册表信息即可解决: Windows Registry Editor Version 5.00 [[HKEY_CLASSES_ROOT\Folder\shell\e ...
分类:
其他好文 时间:
2021-04-19 15:11:29
阅读次数:
0
https://www.git-scm.com/docs/git-pull https://www.runoob.com/git/git-pull.html https://www.yiibai.com/git/git_pull.html https://www.runoob.com/git/git ...
分类:
其他好文 时间:
2021-04-19 14:13:33
阅读次数:
0
一: shell编程介绍 1、一个shell脚本运行必须要拥有r和x权限; chamod u+x 1.txt 2、运行一个shell脚本的3个步骤: (1)启动bash解释器 (2)bash把文件内容从硬盘读入内存 (3)bash把读入到内存的内容进行语法解释,控制操作系统执行shell代码 写脚本 ...
分类:
其他好文 时间:
2021-04-16 12:25:54
阅读次数:
0
模拟cpu使用率 脚本: 可以将1个cpu-core打满 k.c #include <stdlib.h> int main() { while(1); return 0; } gcc -o out k.c ./out 查看top可以看到将1个cpu-core打满,可以根据需要,并发启动多个进程将多个 ...
分类:
其他好文 时间:
2021-04-16 12:03:28
阅读次数:
0