Advertisement
Fhernd

contenido-directorio.py

Jul 15th, 2018
1,349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import os
  2.  
  3. nombre_archivos = [nombre for nombre in os.listdir('C:\\Windows')
  4.                    if os.path.isfile(os.path.join('C:\\Windows', nombre))]
  5.  
  6. for nombre_archivo in nombre_archivos:
  7.     print(nombre_archivo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement