import urllib.request as urllib2
request=urllib2(url)
request.add_data='some data'
request.add_header('User-Agent','Moziua/5.0')
response2=urllib2.urlopen(request)
3.4 中取消了request。add_data()
那上面的代码怎么改才能用
相关分类