結果 : how to find end of string in python