結果 : remove last instance of character python