改变你
comicUrl的这个
comicUrl = comicElem[0].get('src').strip("http://")comicUrl="http://"+comicUrlif 'xkcd' not in comicUrl: comicUrl=comicUrl[:7]+'xkcd.com/'+comicUrl[7:]print "comic url",comicUrl
欢迎分享,转载请注明来源:内存溢出
改变你
comicUrl的这个
comicUrl = comicElem[0].get('src').strip("http://")comicUrl="http://"+comicUrlif 'xkcd' not in comicUrl: comicUrl=comicUrl[:7]+'xkcd.com/'+comicUrl[7:]print "comic url",comicUrl
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)