1 import urllib2 2 url = u"http://www.baidu.com/wd=测试" 3 urllib2.urlopen(url.encode('utf-8')).read()
对url进行encode编码