python错误提示的意思

Python2.7.8(default,Jun302014,16:03:49)[MSCv.150032bit(Intel)]onwin32Type"copyright",... Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ============================= RESTART =============================
>>>
Traceback (most recent call last):
File "E:\python每日学习\test.py", line 8, in <module>
a=urllib2.urlopen(url).read()
File "C:\Python27\lib\urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 410, in open
response = meth(req, response)
File "C:\Python27\lib\urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python27\lib\urllib2.py", line 448, in error
return self._call_chain(*args)
File "C:\Python27\lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
>>>

弹出这个错误表示什么意思?各位大神
展开
 我来答
leffe_李洋
2014-12-04 · 超过59用户采纳过TA的回答
知道答主
回答量:105
采纳率:0%
帮助的人:117万
展开全部
HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )

说的是权限的事吧。看看访问的url是不是有什么权限限制。
追问
  • 我也不知道为什么,我加了  “urllib.getproxies_registry=lambda:{}”  这句就可以读出网页的源码了,但是不知道为什么

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式