結果 : python remove everything after last occurrence of character