結果 : remove last n elements from array python