def modelMatchFileCopy(dic, key, count, targetDir): typeList = util.randomList(dic[key], count) print "file copy, type : %s , count : %s , target : %s" % (key, len(typeList), targetDir) for modelPath in typeList: util.fileCopy(modelPath, targetDir) print "finish : %s" % modelPath