結果 : how to check if a pattern exists in a string in python