結果 : remove last n character from string python