python怎么从不同的路径读取想要的文件

如题所述

示例代码
import glob

for filename in glob.iglob('src/**/*.c', recursive=True):
print(filename)
温馨提示:答案为网友推荐,仅供参考
相似回答