結果 : get first n characters of a string python