python3 urllib使用 module 'urllib' has no attribute 'request'

urllib在python3中不用单独安装直接引用就能够了python

import urlliburl

import urllib.request #python3的urllib不会自动导入其under层的包,须要手动导入
不引用报
module 'urllib' has no attribute 'request'
module 'urllib' has no attribute 'error'import

相关文章
相关标签/搜索