List index outof bounds 这是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/05/24 20:00:54

就是你给定的Index值超出了范围。比如你的list里面只有3个元素,在访问List的元素时候你使用的index=3或者以上,就会出这个错误。(List中第一个元素的index是0)

数组越界