运行code import os, time import sys import re def search(path, name): for root, dirs, files in os.walk(path): if name in dirs or name in files: flag = 1 root = str(root) dirs = str(dirs) return os.path.join(root) return -1 # find vcvarsall.bat save add