在python中from urllib.error import URLError, HTTPError 出错
大家讲道理
大家讲道理 2017-04-18 09:36:05
0
1
299
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

Antworte allen(1)
刘奇

应该是版本问题,py2.7报错,3.5就不会.

python2.7:
>>> import urllib
>>> 'error' in dir(urllib)
False

python3.5:
>>> import urllib
>>> 'error' in dir(urllib)
True
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage