求教大神用python爬虫爬网站时报ValueError: invalid literal for int() with base 10
求教大神用python爬虫爬网站时报ValueError: invalid literal for int() with base 10
代码如下:
#导入模块
import urllib.request
import os
#打开网址
def url_open(url):
# headers = {‘User-Agent’,‘Mozilla/5.0 (Windows NT 6.1; Win64;...
原创
2018-09-21 14:22:24 ·
686 阅读 ·
0 评论