image_paths = [x['path'] for ok, x in results if ok]稍微解释一下:result是一个包含tuple的容器容器中每个元素包含两个值,第一个代表状态True/False,第二个值是一个dict如果元素中状态为True则取dict中的path值