c++运行错误 R6034报错


import os, re

def is_problem(folder):
    try:
        for item in os.listdir(folder):
            if re.match(r'msvcr\d\d\.dll', item):
                return True
    except:
        pass
    return False
    
path = os.environ['PATH'].split(';')
             path = [folder for folder in path if not is_problem(folder)]
os.environ['PATH'] = ';'.join(path)  

评论
  目录