結果 : how to check if a string ends with a substring in python