這個iter物件是⼀個容器,讓我們能夠訪問下⼀個物件(只要它是合法的)。可以通過內建的next 函數檢視:. I = iter([2, 4, 6, 8, 10]) print(next(I)) print(next(I)).
確定! 回上一頁