結果 : how to create a sliding window in python