urllib.request

转载:https://blog.csdn.net/u010211479/article/details/66475183

request=urllib.request.urlopen(url)  '''这段代码是没错的,但是报错为这个  '''AttributeError: module 'urllib' has no attribute 'request'

因为python3有时候不会将子模块自动导入进去,所以改成import url.request问题就解决了

猜你喜欢

转载自blog.csdn.net/qq_29663489/article/details/80720757
今日推荐