s=''' ''' h="img src" c=".jpg" posh=-len(h) posc=-len(c) i=0 while i<s.count(h): posh=s.find(h,posc+len(h)) posc=s.find(c,posh+len(h)) #print posh, #print posc,s[posh:posc+len(c)] t=s[posh:posc+len(c)] http=t.find("http") print t[http:] i=i+1
python小爬虫图片
猜你喜欢
转载自blog.csdn.net/qq_32900237/article/details/82942527
今日推荐
周排行