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