为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我正则表达式报错IndexError: list index out of range

Traceback (most recent call last):

  File "E:\Program\Python\taob.py", line 11, in <module>

    data=re.findall('g_page_config = (.*?)g_srp_loadCss', html, re.S)[0].strip()[:-1]

IndexError: list index out of range


正在回答

举报

0/150
提交
取消
Python开发简单爬虫
  • 参与学习       227586    人
  • 解答问题       1288    个

本教程带您解开python爬虫这门神奇技术的面纱

进入课程

为什么我正则表达式报错IndexError: list index out of range

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号