집 > Q&A > 본문
from urllib.error import URLError, HTTPError
ImportError: No module named error
三叔2016-10-28 16:32:26
应该是版本问题,py2.7报错,3.5就不会.
python2.7: >>> import urllib >>> 'error' in dir(urllib) False python3.5: >>> import urllib >>> 'error' in dir(urllib) True