码迷,mamicode.com
首页 >  
搜索关键字:count    ( 18169个结果
java基础1-100的素数
package edu.xl.lesson1;public class Count { public static void main(String[] args) { for(int i = 2 ; i <= 100 ; i++){//因为1不是素数所以从2开始; boolean ...
分类:编程语言   时间:2015-09-09 00:58:09    阅读次数:213
更新财务报表2
-- 查询月服务天数不等于 数据库中存的月服务天数SELECT b.day1,a.days_of_month from erp_work_day_opt_info_copy a, (select count(DISTINCT service_day) as day1 , order_id from ...
分类:其他好文   时间:2015-09-08 21:36:50    阅读次数:170
统计MYSQL数据库所有表当前的数据量!
morecount_table_count.sh #!/bin/bash >table_count.txt mysql-uroot-p123123-h192.168.10.100-e"userrmj;showtables;"|sed‘/Tables_in_rrmj/d;/category/d;/duplicate_user/d;/login_user/d;/resource/d;/resource_category_rel/d;/resource_detail/d;/tmp/d;/user/d‘>..
分类:数据库   时间:2015-09-08 20:22:50    阅读次数:493
python中sleep函数
importtime#导入time模块count=0#设置一个计数器,每循环一次加一次,这样就知道循环多少次了。whileTrue:count+=1#每循环一次就自加1print"Loop",counttime.sleep(10)#每循环一次就sleep10s再继续运行
分类:编程语言   时间:2015-09-08 12:39:51    阅读次数:193
倒叙筛除list
for(inti=list.Count-1;i>=0;i--){if(list[i]){list.RemoveAt(i);}}
分类:其他好文   时间:2015-09-08 12:12:01    阅读次数:144
模拟strlen的三种实现方式
#include<stdio.h>#include<stdlib.h>#include<assert.h>#include<stdio.h>#include<stdlib.h>#include<assert.h>intmy_strlen(constchar*p){intcount=0;assert(p!=NULL);while(*p){count++;p++;}returncount;}//遍历字符串intmy_strlen_2..
分类:其他好文   时间:2015-09-08 07:16:33    阅读次数:139
救援模式修复grub
1.模拟破坏mbr引导。ddif=/dev/zeroof=/dev/sdabs=400count=1这样系统就无法启动了。放入Linux系统光盘,开机。选择第三项救援模式。省略了部分不重要的截图,直接到下面的界面。chroot/mnt/sysp_w_picpath#切换到硬盘上的系统cd/boot/ls#查看boot目录下是否缺少文件grub#进入g..
分类:其他好文   时间:2015-09-08 07:10:30    阅读次数:148
Java中分拣存储的demo
//Letter.javapackage yzhou.map; /** * * @author 洋 * */ public class Letter { private String name; private int count; public Letter() { // TODO Auto-ge...
分类:编程语言   时间:2015-09-08 01:41:20    阅读次数:131
PHP 计算出内存最高占用.
PHP 计算出内存最高占用.代码可以计算出内存是否完全被使用, ini设置处:memory_limit = 1024M代码跑完将显示如下信息:memory_limit:320Mall run count: 55924054\$data string size:266.67MBrun memory: ...
分类:Web程序   时间:2015-09-08 01:38:55    阅读次数:141
Swift实现的快速排序及sorted方法的对比
Swift语言有着优秀的函数式编程能力,面试的时候面试官都喜欢问我们快速排序,那么用Swift如何实现一个快速排序呢?首先扩展Array类:extension Array { var decompose : (head: T, tail: [T])? { return (count > 0) ? (self[0], Array(self[1..<count])) : nil...
分类:编程语言   时间:2015-09-07 22:58:33    阅读次数:426
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!