結果 : how to implement sliding window in python