結果 : python substring up to last character