結果 : python substring before last occurrence of character