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

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

 

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

import urllib.request

posted @ 2020-12-16 21:48  Chen洋  阅读(6133)  评论(0)    收藏  举报