使用正则表达式可以很好解决import res = 'Hello!This?Is!What?I!Want'ss = re.split('[!?]', s) ss = ['Hello', 'This', 'Is', 'What', 'I', 'Want']
分类:
编程语言 时间:
2014-10-20 11:40:37
阅读次数:
134
SELECThiredate,
to_number(to_char(hiredate,‘hh24‘))时,
to_number(to_char(hiredate,‘mi‘))分,
to_number(to_char(hiredate,‘ss‘))秒,
to_number(to_char(hiredate,‘dd‘))日,
to_number(to_char(hiredate,‘mm‘))月,
to_number(to_char(hiredate,‘yyyy‘))年,
to_number(to_ch..
分类:
其他好文 时间:
2014-10-19 01:35:03
阅读次数:
163
SELECThiredate,
to_number(to_char(hiredate,‘hh24‘))时,
to_number(to_char(hiredate,‘mi‘))分,
to_number(to_char(hiredate,‘ss‘))秒,
to_number(to_char(hiredate,‘dd‘))日,
to_number(to_char(hiredate,‘mm‘))月,
to_number(to_char(hiredate,‘yyyy‘))年,
to_number(to_ch..
分类:
其他好文 时间:
2014-10-19 01:34:07
阅读次数:
222
SimpleDateFormatsdf=newSimpleDateFormat("yyyy-MM-ddhh:mm:ss");yyyy-MM-ddhh:mm:ss中只有MM(表示月)是大写,其他都是小写,否则会报Illegalpatterncharacter‘Y‘。
分类:
其他好文 时间:
2014-10-19 01:33:10
阅读次数:
268
盒子属性的顺序是:顺时针,上右下左。 三个时:上 ,左右,下 两个是:上下,左右。 一个是:上下左右。
分类:
Web程序 时间:
2014-10-18 12:33:36
阅读次数:
194
逻辑或 ||int i, j, k;i = 0x15;j = 0x41;k = i || j;反汇编代码如下:MOV DWORD PTR SS:[EBP-4], 15MOV DWORD PTR SS:[EBP-C], 41CMP DWORD PTR SS:[EBP-4], 0JNZ SHORT as...
分类:
其他好文 时间:
2014-10-18 11:02:17
阅读次数:
198
//___逻辑取反 !______________________________________________________非零值取反得到0, 0取反得到1int i, j;i = 0x8877;j = !i;反汇编代码:MOV DWORD PTR SS:[EBP-4], 0X4321XOR....
分类:
其他好文 时间:
2014-10-18 10:57:48
阅读次数:
230
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); long now = System.currentTimeMillis(); Calendar calendar = Calendar.getInstance(.....
分类:
其他好文 时间:
2014-10-18 09:49:03
阅读次数:
1756
简单数组:ss["aa","vv","se","re"];ss=ss.sort();var rdata = Reports.sort(function (a, b) { if (a.bbCode > b.bbCode) { return 1; } else { return -1; } });//R...
分类:
编程语言 时间:
2014-10-17 11:32:26
阅读次数:
138