結果 : python substring all but last character