对于同时需要遍历两个及以上的列表的情况下,需要enumerate与zip结合使用。 一、例子 for i, (image, feature) in enumerate(zip(images, features)): ... ... ...