list (yrange(5)) [0, 1, 2, 3, 4] >>> sum(yrange(5)) 10. In the above case, both the iterable and iterator are the same object. Notice that the __iter__ ...
確定! 回上一頁