結果 : numpy array get first and last element