結果 : remove the last n characters from string python