标题: 老是提醒我错误“IndexError: list index out of range” [打印本页] 作者: super_code 时间: 2018-1-7 16:04 标题: 老是提醒我错误“IndexError: list index out of range” 老是提醒我错误“IndexError: list index out of range”,明明没错的啊!详细如附件截图。详细错误提示如下:
Traceback (most recent call last):
File "D:/学习/Python/Python33/Python33 处理文件数据.py", line 16, in <module>
result='%s\t:%d\n'%(data[0],sum)
IndexError: list index out of range