ITeye博客

321

dragonlin06 · 2010-07-16 18:15 · 编程语言 · Markdown

def getImpuList2(impu,number): records = second = impu.index('@') import re pat = re.compile('\d+') lis = pat.findall(impu) s1=lis first = impu.rindex(s1) maxLength = second- first if maxLength>len(s1): second = first + len(s1) newImpuList = range(int(s1),int(s1)+int(number),1) for x in newImpuList: print x ,type(x) record = impu+str(x)+impu records.append(record) return records

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。