当索引超出了范围时,Python会报一个 IndexError 错误,所以,要确保索引不要越界,记得最后一个元素的索引是 len(classmates) - 1 。 如果要取最后一个 ...
確定! 回上一頁