結果 : get first n characters in string python