2
所以我有这样的代码:蟒蛇urllib的错误
def crawl(self, url):
data = urllib.request.urlopen(url)
print(data)
但后来当我打电话的功能,它返回
data = urllib.request.urlopen(url)
AttributeError: 'module' object has no attribute 'request'
我做了什么错?我已经导入的urllib ..
使用python 3.1.3