module 'urllib' has no attribute 'request'的解决方法

报错:module 'urllib' has no attribute 'request'解决办法:

然后查找原因,据说python3有时候不会将子模块自动导入进去,所以前面加上:(亲测可行)

import urllib.request

原文地址:https://www.cnblogs.com/cy0628/p/14146462.html