上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 参考 https://www.cnblogs.com/yulongcode/p/10585229.html https://blog.csdn.net/qq_41921511/article/details/80816845 阅读全文
posted @ 2019-05-07 18:15 千载白云 阅读(111) 评论(0) 推荐(0) 编辑
摘要: ${array[*]} 获取数组字符 ${#word} 获取长度 ${echo qwe|wc -L} 或者 echo qwe|awk '{print length}' 阅读全文
posted @ 2019-04-19 16:03 千载白云 阅读(1657) 评论(0) 推荐(0) 编辑
摘要: 三 阅读全文
posted @ 2019-04-18 15:23 千载白云 阅读(1788) 评论(0) 推荐(0) 编辑
摘要: limit分页原理 当我们翻到最后几页时,查询的sql通常是:select * from table where column=xxx order by xxx limit 1000000,20。查询非常慢。但是我们查看前几页的时候,速度并不慢。这是因为limit的偏移量太大导致的。MySql使用l 阅读全文
posted @ 2019-04-15 15:10 千载白云 阅读(1732) 评论(0) 推荐(0) 编辑
摘要: 1、一群猴子排成一圈,按1,2,…,n依次编号。然后从第1只开始数,数到第m只,把它踢出圈,从它后面再开始数,再数到第m只,在把它踢出去…,如此不停的进行下去,直到最后只剩下一只猴子为止,那只猴子就叫做大王。要求编程模拟此过程,输入m、n, 输出最后那个大王的编号。 function king($n 阅读全文
posted @ 2019-04-09 15:28 千载白云 阅读(260) 评论(0) 推荐(0) 编辑
摘要: #/bin/bash #队列的守护进程 Date = `date +"%F-%H:%M:%S"` XMML = "/var/www/html/xiangmu" project= "src.plan" log = "RIZHI" num = `ps aux|grep ${project}|grep -V 'grep'|wc -l` if [$num -eq 1] then echo "... 阅读全文
posted @ 2019-04-01 16:48 千载白云 阅读(1045) 评论(0) 推荐(0) 编辑
摘要: all(); //sleep(10); foreach ($list as $teacher_id) { //$teacher_id = 22171; $sql = "SELECT t.teacher_id,t.race_type,lm.is_leader,ttgr.grade_id FROM teacher t ... 阅读全文
posted @ 2019-03-31 20:12 千载白云 阅读(494) 评论(0) 推荐(0) 编辑
摘要: isOper($ch)==true){ //是运算符 /** 3.如果发现是运算符 3.1 如果符号栈为空,就直接入符号栈 3.2. 如何符号栈,不为空,就判断 如果当... 阅读全文
posted @ 2019-03-30 18:32 千载白云 阅读(355) 评论(0) 推荐(0) 编辑
摘要: <?php//观察者模式//抽象通知者abstract class Subject { protected $observer = array() ; //添加观察者 public abstract function Attach(observer $observer); //移除观察者 publi 阅读全文
posted @ 2019-03-30 15:22 千载白云 阅读(126) 评论(0) 推荐(0) 编辑
摘要: <?php//中介者模式 -- //抽象中介者abstract class UnitedNationa{ punlic abstract function Declared($message,country $colleague)} class UnitedCommit extends United 阅读全文
posted @ 2019-03-30 13:30 千载白云 阅读(225) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页