for循环到中间样本出现indexerror 就用try和except重写出错代码处,找到问题出错的数据: error:a = x.strip().split("|")[4] try: a = x.strip().split("|")[4] except: print(123)
12-08
463
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
for循环到中间样本出现indexerror 就用try和except重写出错代码处,找到问题出错的数据: error:a = x.strip().split("|")[4] try: a = x.strip().split("|")[4] except: print(123)