結果 : how to replace last character of string in python