方法之一 sudo find dress/ -name *.jpg | cut -d '/' -f2-3 > train_dress.txt"find"后面跟的是当前文件下的子文件夹,子文件夹中的图片,使我们想要将索引写进txt文件中的对象。