結果 : python string remove after last occurrence of character