码迷,mamicode.com
首页 >  
搜索关键字:shell 函数    ( 212457个结果
linux shell while循环
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 int f(int n){ 2 if(n == 1){ 3 return 1; 4 } 5 return f(n - 1) + 1; 6 } 客户端调用该递归函数时传入n = 5, 返回的函数值为5。那么它的调用堆栈(call stack)是怎么样的?又是如何计算 ...
分类:其他好文   时间:2021-04-23 12:01:13    阅读次数:0
Python中eval()函数的功能及使用方法
eval(str)函数很强大,官方解释为:将字符串str当成有效的表达式来求值并返回计算结果。所以,结合math当成一个计算器很好用。 eval()函数常见作用有: 1、计算字符串中有效的表达式,并返回结果 >>> eval('pow(2,2)') 4 >>> eval('2 + 2') 4 >>> ...
分类:编程语言   时间:2021-04-23 12:00:15    阅读次数:0
adb 截屏和录屏
1、截屏 adb shell screencap -p /sdcard/a.png 2、录屏 adb shell screenrecord /sdcard/a.mp4 ...
分类:数据库   时间:2021-04-23 11:57:08    阅读次数:0
python---opencv常用函数
求点的最小外接矩 rect1 = cv2.minAreaRect(box): def back_forward_convert(coordinate, with_label=True): """ :param coordinate: format [x1, y1, x2, y2, x3, y3, x ...
分类:编程语言   时间:2021-04-23 11:53:53    阅读次数:0
linux shell if语句
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
c++ (默认参数)
函数的默认参数 //注意事项:入股哦有一个位置有了默认参数,那么从这个位置开始,从左往后都必须有默认参数 //函数声明和实现里,只能有一个里面有默认参数,不能同时都有默认参数 void test03(int a = 20, int b = 30) {cout << "a + b = " << a + ...
分类:编程语言   时间:2021-04-22 16:33:54    阅读次数:0
linux shell脚本中流程控制语句 if 、for、while、case
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,sed)
Shell工具 cut:可以切割提取指定列\字符\字节的数据 cut可以将文本按列进行划分的文本处理,cut命令逐行度入文本,然后按列划分字段并进行提取,输出等操作 选项参数: -f 提取范围 列号,获取第几列 -d 自定义分隔符 自定义分隔符,默认为制表符 -c 提取范围 以字符为单位进行分割 - ...
分类:系统相关   时间:2021-04-22 16:20:19    阅读次数:0
React管理系统搭建二
使用三元符进行表单切换 React事件(自定义的函数)的触发通过onclick JSX中onclick挂载的函数在组件范围内,不会污染全局空间,使用了事件委托捕获所有的点击事件,DOM树上只添加了一个事件处理函数,根据具体组件分配给特定的函数 子组件通过props获取父组件的所有属性 React的特 ...
分类:其他好文   时间:2021-04-22 16:13:07    阅读次数:0
212457条   上一页 1 ... 98 99 100 101 102 ... 21246 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!