The Python Game Book

code games. learn Python.

User Tools

Site Tools


en:glossary:g:glob

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:glossary:g:glob [2020/12/20 08:43]
horst
en:glossary:g:glob [2021/01/18 18:52] (current)
horst
Line 6: Line 6:
  
 Glob can enter into directories recursively.  Glob can enter into directories recursively. 
 +
 +<code python>
 +import glob
 +list_of_filenames = glob.glob("*.txt", recursive = False)
 +</code>
en/glossary/g/glob.txt ยท Last modified: 2021/01/18 18:52 by horst