|
|
楼主 |
发表于 2015-11-18 11:33:44
|
显示全部楼层
本帖最后由 qq253040425 于 2015-11-18 11:38 编辑
回复 25# 依山居
大神!!
出现问题了。。
数据中有
"LS81702201409060006659","20",,"817029700","817029700","2","9","",,,,,
不以“结尾,以,结尾的数据,这样的子的数据是正确的数据,
Traceback (most recent call last):
File "F:\BAT\tt\check_del_here.py", line 29, in <module>
newtxt=[txt[r][:]+txt[r+1][:] if ('\"' not in txt[r][-1]) else txt[r] for r in range(rn) ]
File "F:\BAT\tt\check_del_here.py", line 29, in <listcomp>
newtxt=[txt[r][:]+txt[r+1][:] if ('\"' not in txt[r][-1]) else txt[r] for r in range(rn) ]
IndexError: list index out of range |
|