結果 : remove last n from string python