筛选某一文件下内具备某一前缀的文件:

for file in files
    filename = os.path.listdir(file)
    if 'qianzhui--' in filename:
        # do something

 

相关文章: