`
dragonlin06
  • 浏览: 18891 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论

321

 
阅读更多
def getImpuList2(impu,number):
        records = []
        second = impu.index('@')
        import re
        pat = re.compile('\d+')
        lis = pat.findall(impu)
        s1=lis[-1]
        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[:first]+str(x)+impu[second:]
            records.append(record)
        return records
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics