在写python爬虫时数组部分遇到了IndexError: list index out of range错误
只要加上try…..except 错误机制跳过空值就行了
![图片[1]-python爬虫IndexError: list index out of range错误-吾爱博客](https://s4.ax1x.com/2021/12/27/TDN36g.jpg)
try:
出问题的代码
except IndexError:
pass
© 版权声明
吾爱博客|AYFRE.COM 版权所有,转载请标明出处。
THE END
在写python爬虫时数组部分遇到了IndexError: list index out of range错误
只要加上try…..except 错误机制跳过空值就行了
try:
出问题的代码
except IndexError:
pass
请登录后查看评论内容