結果 : how to replace the last element in a list python