cat file.txt | xargs -i cp {} /path/
txt 中一个文件名占一行
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 13 16:55:14 2017
author: hans
"""
import Image
f = open('list.txt')
for line in f:
line=line.strip('\n')
im = Image.open('/path/to/image/%s' %line)
im.save('./path/to/destination/%s' %line)