关于request的问题
python2环境:
import urllib urllib2
request = urllib2.Request('http://www.baidu.com')
request = urllib2.request('http://www.baidu.com')
request = urllib.Request('http://www.baidu.com')
request = urllib.request('http://www.baidu.com')
python3环境:
import urllib urllib2
request = urllib.Request('http://www.baidu.com')
request = urllib.request('http://www.baidu.com')
以上全部报错AttributeError: 'module' object has no attribute 'Request'