IndexError: list index out of range error reason

The first possible case


list[index]index is out of range, which is often referred to as the array out of bounds


The


second possible case is that the list is empty without an element 

 This error will occur when list[0] is executed, which is very common in crawler problems. For example, if a list is crawled down and is empty, an error will be reported in unified processing.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325642900&siteId=291194637