python 自动化相关

348 阅读1分钟

断言assert

遇到的报错总结

IndexError: list index out of range

第一种可能:list[index] index超出范围
第二种可能:list是一个空的进行list[0]就会出现该错误