結果 : remove first and last element of array python