結果 : how to get end of string in python