結果 : replace last element of list python