Python で iterator の次の値を取得しながら走査したい - Qiita
やりたいこと Ruby での (1...10).each_cons(2).to_a # => [[1, 2], [2, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [8, 9]] を Python でやりたい。 方法 1 i...