result = (f for f in result if f.ext.lower() in ext_filters) AttributeError: 'str' object has no attribute 'ext' result为os.listdir的结果,类型为字符串,没有ext