Utilisation du module glob pour rechercher tous les fichiers HTML dans le répertoire actuel dans Python
import glob
# path of the current directory
path = '.'
curfiles = glob.glob(path + '/*.html')
for file in curfiles:
print(file)
Copy Code
Pythonist