码迷,mamicode.com
首页 >  
搜索关键字:done    ( 2584个结果
shell做升序或者降序排列十位随机数
十位数排序方法:列举前四位数组的升序排序4526if4大于5;那么就将4和五的位置进行调换(此处不大于无作为),拿第二个数和三个数作比较,if5大于2那么temp=55=22=temp;得到:4256;继续拿第四个数和第五个数做比较,if2大于6那么位置调换(无作为)。此时得到4256;上述循环做四次保证每一个数都能进行比较这里简写:if4>2;thentemp=44=22=temp;得到2
分类:系统相关   时间:2020-02-28 09:15:34    阅读次数:97
(分治)输出前m大的数。。。
描述给定一个数组包含n个元素,统计前m大的数并且把这m个数从大到小输出。输入第一行包含一个整数n,表示数组的大小。n < 100000。第二行包含n个整数,表示数组的元素,整数之间以一个空格分开。每个整数的绝对值不超过100000000。第三行包含一个整数m。m < n。输出从大到小输出前m大的数, ...
分类:其他好文   时间:2020-02-27 23:47:47    阅读次数:137
常用命令
command Linux:scp -p -P 58958 /opt/logs/sevend/jsdfq-server/* admin@172.16.1.17:/data/logs/sz-app-jsdfq-server //服务器文件拷贝curl http://120.25.66.167:9768 ...
分类:其他好文   时间:2020-02-27 16:03:45    阅读次数:54
md5sum|zip|
##move## for((i=1;i<=22;i++));do cp combine_all.split_$i split_$i;done ##gzip## mkdir gzip/workshell for((i=1;i<=22;i++));do echo "gzip split_$i"> spl ...
分类:其他好文   时间:2020-02-27 13:12:40    阅读次数:60
ES6常用语法(二)
arrow functions (箭头函数) 函数的快捷写法。不需要 function 关键字来创建函数,省略 return 关键字,继承当前上下文的 this 关键字 // ES5 var arr1 = [1, 2, 3]; var newArr1 = arr1.map(function(x) { ...
分类:其他好文   时间:2020-02-26 01:25:55    阅读次数:82
CSCI 4155/6505
CSCI 4155/6505 – Winter 2020 A2Assignment 2 Full [pre-release summary of certain relevant parts only!]Submission Note (as explained in class): In orde ...
分类:其他好文   时间:2020-02-25 20:11:13    阅读次数:58
tcl/string/20200225 fromCharCode, toCharCode
proc String.fromCharCode {args} { set s [binary format s* $args] encoding convertfrom unicode $s } proc String.toCharCode {s} { set s [encoding conver ...
分类:其他好文   时间:2020-02-25 14:56:52    阅读次数:90
Inheritance: For Good or For Worse
1. Subclassing Built-In Types Is Tricky Since Python 2.2, subclassing built-in types such as list or dict can be done but there is a major caveat: the ...
分类:其他好文   时间:2020-02-25 09:29:49    阅读次数:60
Linux 服务器使用shell脚本 实现 间隔N秒访问url
#!/bin/bash n=0 max=11 while(($n<max)) do curl -sS --connect-timeout 1000 -m 60000 'http://wx.com/inex' //访问url n=($n+1) sleep 5 done 脚本写好后将添加到linux服务 ...
分类:Web程序   时间:2020-02-24 16:53:11    阅读次数:177
OpenCV 4.2.0 编译成功日志
CarolH@CHE  ~/Downloads/opencv-4.2.0/build  cmake .. -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS="-std=c++11 -stdlib=libc ...
分类:其他好文   时间:2020-02-24 13:30:02    阅读次数:434
2584条   上一页 1 ... 26 27 28 29 30 ... 259 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!