listdir

Smith smith at smith.it
Mon Sep 5 12:20:59 EDT 2016


On 05/09/2016 17:57, jmp wrote:
>
> Is that what you're expecting ?
> A slightly different version:
>
> import glob, os
>
> a = input("search for files with the extension .py into directory:  ")
> print glob.glob(os.path.join(a, '*.py'))
>
> jm

Thank you

Sorry, but i'm newbie :-(



More information about the Python-list mailing list