AttributeError: module 'urllib' has no attribute 'urlopen' when importing urllib in Python 3


After searching online, the reasons are as follows:

Python3 should use urllib.request. After the change, this error will no longer appear. . . . . . . . . .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325339583&siteId=291194637