📜  如何循环遍历 glob.iglob 迭代器 - Python 代码示例

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

代码示例1
import glob

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

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