def move_file(dirs,src,dst):
src = src+".jpg"
dst = item[1]+"/"+src
print src
# Moves the file
shutil.copyfile(src, dst)
move_file(dirs,item[0],item[1])
给我这个错误:
IOError: [Errno 2] No such file or directory: 'r/001.jpg'
即使当
item = ('001','Grass')
'r/' 来自哪里?