记录python2.x 实用urllib的几个诡异报错和解决办法
1,python 2.7 AttributeError: 'module' object has no attribute 'urlopen'
解决办法:删除python安装目录下的:urllib.pyc文件;
2,AttributeError: addinfourl instance has no attribute '__exit__'
解决办法:
with urlopen('htt...
原创
2018-10-29 00:04:18 ·
1586 阅读 ·
0 评论