在写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
温馨提示:
本文最后更新于
2021-12-27
,某些文章具有时效性,若有错误或已失效,请在下方
留言。
© 版权声明
吾爱博客|AYFRE.COM 版权所有,转载请标明出处。
THE END
请登录后查看评论内容