全部博文(108)
发布时间:2014-04-10 12:49:22
最近忙的很,暂时找点东西看下。不想干活。search(string[, pos[, endpos]])Scan through string looking for a location where this regular expression produces a match, and return a corresponding MatchObject instance. Return None if no position in the strin.........【阅读全文】
发布时间:2014-04-10 11:48:32
(?iLmsux)(One or more letters from the set 'i', 'L', 'm', 's', 'u', 'x'.) The group matches the empty string; the letters set the corresponding flags: re.I (ignore case), re.L (locale dependent), re.M (multi-line), re.S (.........【阅读全文】
发布时间:2014-01-26 19:03:09
有2段代码如下a.py#!/usr/bin/pythonfrom time import timet=time()lista=[1,2,3,4,5,6,7,8,9,10]listb=[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.01]len1=len(lista)len2=len(listb)for i in xrange(1000000): for a in xrange(len1): &.........【阅读全文】