def process_filter_description(filter, images, ial):
'''Return a new list containing only items from list images that pass
the description filter (a str). ial is the related image association list.
Matching is done in a case insensitive manner.
'''
images = []
for items in ial:
这些是我迄今为止唯一的两行代码。令我不安的是函数中的过滤器。我真的不知道过滤器应该做什么或如何使用它。需要了解Python中的函数
绝不会要求完整的代码。我只是想要过滤器应该做什么以及如何使用它的帮助。
嗯 - 这真的很模糊...更多的上下文肯定会有必要帮助你。 – jedwards
'process_filter_description()'在哪里?或者你正在写什么? – yosukesabai
这对我来说就像是功课。文档字符串可以作为一个问题从文本书中取出。 –