**Python错误记录:IndexError: list index out of range**
2016-12-15 17:52
501 查看
Python错误记录:IndexError: list index out of range
刚开始做自动化测试,遇到这个问题IndexError: list index out of range百度一下找到了答案,我只是整理一下
这个错误出现大约有两种情况:
第1种可能情况
list[index]index超出范围
第2种可能情况
list是一个空的 没有一个元素
进行list[0]就会出现该错误
相关文章推荐
- Python 爬虫 raise self._value IndexError: list index out of range
- IndexError: list index out of range的错误原因
- IndexError: list index out of range的错误原因 和python sorted函数以及operator.itemgetter函数
- python PIL, 错误:IndexError: string index out of range
- python创建cocos2d-x出现list index out of range的问题解决方法
- Hibernate query.list()查询发生java.lang.StringIndexOutOfBoundsException: String index out of range: 0错误
- 【Bug-python】IndexError: list index out of range
- 错误:list assignment index out of range 和list index out of range
- Python:IndexError: list index out of range
- python IndexError: list assignment index out of range
- Python操作MySQL的一个报错:IndexError: out of range
- python列表删除会出现一个错误 list index out of range
- Hibernate query.list()查询发生java.lang.StringIndexOutOfBoundsException: String index out of range: 0错误
- IndexError: list index out of range的错误原因
- IndexError: list index out of range的错误原因
- scrapy运行问题:IndexError: list index out of range
- python列表删除会出现一个错误 list index out of range
- Android 多点触控错误处理(java.lang.IllegalArgumentException: pointerIndex out of range)
- Android Studio Error String index out of range 0 字符串索引超出范围
- python 脚本IndexError: tuple index out of range