結果 : sliding window method in python