#-*- coding:utf-8 -*-
import urllib2
re = urllib2.Request(r'http://www.google.cn/intl/zh-CN/images/logo_cn.gif')
rs = urllib2.urlopen(re).read()
open('google.gif', 'wb').write(rs)
这段代码是说把链接地址中现在下载下来的logo_cn.gif,以2进制的方式写到本地google.gif文件中吗?但我是用的爬虫循环好多下载地址,要怎么把它保存到本地磁盘的文件夹下(如:r'd:\download')