Python 3中导入urllib出现AttributeError: module 'urllib' has no attribute 'urlopen'


在网上查了后原因如下:

Python3中应该用urllib.request。更改后就不会再出现这个错误了。。。。。。。。。。

猜你喜欢

转载自www.cnblogs.com/gongzixi/p/8987550.html