Python 自然语言处理 P88
from urllib import urlopen
Traceback (most recent call last):
File "<ipython-input-3-38916afb020b>", line 1, in <module>
from urllib import urlopen
ImportError: cannot import name 'urlopen' from 'urllib'
Python 2.x 和 Python 3.x 某些库位置不同
修改为:
from urllib.request import urlopen