用爬虫抓取图片的保存
保存图片
request=urllib2.Request(randNumberUrl,data,headers) picture=opener.open(request).read() local=open('D:/tmp.png','wb') local.write(picture) local.close()
request=urllib2.Request(randNumberUrl,data,headers) picture=opener.open(request).read() local=open('D:/tmp.png','wb') local.write(picture) local.close()