>>> req.addheader("User-Agent","Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0")
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
req.addheader("User-Agent","Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0")
AttributeError: 'HTTPResponse' object has no attribute 'addheader'
add和header中间有一个下划线