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

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

import urllib.request