AttributeError: module 'urllib' has no attribute 'parse'报错解决办法
报错
AttributeError: module 'urllib' has no attribute 'parse'
原因
urllib模块比较特殊,不能import urllib后使用他下面的子模块
解决办法
import urllib
改为 import urllib.parse
或from urllib import parse
,直接导出他的子模块,parse是你要使用的子模块