結果 : last occurrence of character in string python