list = ["apple", "orange", "banana", "watermelon", "cherry"]
string = "an"
编写一个函数，根据包含特定字符串的项对列表进行过滤。
def filter_string_list(lst, string):
    return [item for item in lst if string in item]

filtered_list = filter_string_list(list, string)
print(filtered_list) # 输出 ['orange', 'banana', 'watermelon', 'cherry']