Unterschied zwischen Iglob () und Glob () -Funktionen in Python

import glob
# path of the current directory
path = './Rough'
htmlfilesusing_glob = glob.glob(path + '/*.html')
print(htmlfilesusing_glob)


htmlfilesusing_iglob = glob.iglob(path + '/*.html')
print(htmlfilesusing_iglob)

# output
# ['./Rough\\html.html', './Rough\\index.html']
# <generator object _iglob at 0x0000018A0F54A030>
    Copy Code
Pythonist