Mac AttributeError: module ‘urllib‘ has no attribute ‘request‘@[TOC]报错python3.7
Mac AttributeError: module ‘urllib’ has no attribute ‘request’@[TOC]报错python3.7
刚入门爬虫,基本都是照抄书本依然报这个令人费解的错,最纳闷的是明明是照抄怎么就不一样了
import urllib
if name == ‘main’:
url = ‘http://stock.eastmoney.com/news/1407...
原创
2019-05-16 18:49:45 ·
528 阅读 ·
1 评论