Zainstaluj moduł Python Glob w systemie Windows
pip install glob2
Pythonist
pip install glob2
import glob
# path of the current directory
path = '.'
curfiles = glob.glob(path + '/*.html')
for file in curfiles:
print(file)