📜  python 遍历目录中的文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:37.667000             🧑  作者: Mango

代码示例5
import glob

globIterator = glob.iglob(path, recursive=True)

run = True
while(run == True):
    try:
        print(next(globIterator))
    except:
        run = False