結果 : get all but last character of string python