python 3.4 urllib2 不能用
import urllib.request as urllib2
request=urllib2(url)
request.add_data('a','1')
request.add_header('User-Agent','Moziua/5.0')
response2=urllib2.urlopen(request)
这个代码怎么改对
import urllib.request as urllib2
request=urllib2(url)
request.add_data('a','1')
request.add_header('User-Agent','Moziua/5.0')
response2=urllib2.urlopen(request)
这个代码怎么改对
2016-09-08
举报