String ipRegex = "^(\\d|[1-9]\\d|1\\d*|2[0-4]\\d|25[0-5])(\\.\\1){3}$"; /* * \\d|[1-9]\\d|1\\d*|2[0-4]\\d|25[0-5] * 该段的数字只有一位的时候,两位数字的时候,三位数字的时...
分类:
其他好文 时间:
2014-11-07 20:45:25
阅读次数:
186
全局变量与全局静态变量的区别: (a)若程序由一个源文件构成时,全局变量与全局静态变量没有区别。 (b)若程序由多个源文件构成时,全局变量与全局静态变量不同:全局静态变量使得该变量成为定义该变量的源文件所独享,即:全局静态变量对组成该程序的其它源文件是无效的。 (c)具有外部链接的静态;可以在所有源...
分类:
其他好文 时间:
2014-11-07 20:43:13
阅读次数:
126
echo命令向一个文件写入内容的方法详解,感兴趣的朋友可以参考下。覆盖型写法 (文件里原来的内容被覆盖)echo "aaa" > a.txtecho aaa > a.txt添加型写法 (新内容添加在原来内容的后面)echo "aaa" >> a.txtecho aaa >> a.txt
分类:
其他好文 时间:
2014-11-07 16:49:20
阅读次数:
191
大标题??
===================================??
??大标题一般显示工程名,类似html的\<h1\><br?/>??
??你只要在标题下面跟上=====即可??
??
????
中标题??
------------------------------...
分类:
其他好文 时间:
2014-11-07 13:15:02
阅读次数:
207
a = raw_input() #输入数字a = int(a) #强制转换成intb=True #一个标记for i in range(2,a): #从2开始循环本身 if a%i==0: #如果除了本身和1以外还能被整除 b=False #标记改成False br...
分类:
编程语言 时间:
2014-11-07 09:48:50
阅读次数:
112
px(像素):每个px对应屏幕上的一个点。dip或dp(device independent pixels,设备独立像素):一种基于屏幕密度的抽象单位。在每英寸160点的显示器上,1dip=1px。但随着屏幕密度的改变,dip与px的换算会发生改变。sp(scaled pixels,比例像素):主要...
分类:
移动开发 时间:
2014-11-07 00:54:39
阅读次数:
190
String[] str = new String[] { "a", "b", "c" }; System.out.println(str); System.out.println(str.toString());控制台输出结果如下:[Ljava.lang.String;@1db9742[Lj...
分类:
其他好文 时间:
2014-11-06 23:29:44
阅读次数:
329
declare @randnum int=0declare @startnum int =0declare @endnum int=0set @startnum = 150set @endnum = 200set @randnum = ROUND(((@endnum - @startnum -1) ...
分类:
数据库 时间:
2014-11-06 16:34:15
阅读次数:
162
I have a file, consisting of a column of numbers, some of which are the same, Iwant to count the occurrences of each unique number, here is the simple...
分类:
其他好文 时间:
2014-11-06 14:19:06
阅读次数:
200