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