Python 爬虫 Urllib2库的变更

urllib2 的一些函数在更新之后,调用发生了变化,改为放入到urllib.request的子库当中:

Previous Replacement
Urllib2.Urlopen() urllib.request.urlopen()
Urllib2.Request() urllib.request.Request()

猜你喜欢

转载自blog.csdn.net/dingyiye2649/article/details/81145426
今日推荐