摘要: 队列: queue.Queue(maxsize=0) #先入先出 queue.LifoQueue(maxsize=0) #last in fisrt out queue.PriorityQueue(maxsize=0) #存储数据时可设置优先级的队列 生产者和消费者模型: 在并发编程中使用生产者和消 阅读全文
posted @ 2016-10-14 18:45 chhshichenhaha 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 进制转换: <?php $num = 15; $cs = 16; $str = " "; while ($num != 0) { $ys = $num % $cs; $num = (int)($num / $cs); $ys = $ys>9?chr($ys+87):$ys; // if ($ys>9 阅读全文
posted @ 2016-10-14 15:48 chhshichenhaha 阅读(234) 评论(0) 推荐(0) 编辑
摘要: -----------聚合函数使用------------------------ --1、查询student表中所有学生人数 select count(stuno) from student --2、查询stucou表中选课的人次 select count(*)as 选课人数 from stucou --3、查询stucou表中学生所选课程数量 select count(distinc... 阅读全文
posted @ 2016-10-14 09:15 chhshichenhaha 阅读(865) 评论(0) 推荐(0) 编辑