반응형
from os import listdir
from os.path import isfile, join
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
'Python' 카테고리의 다른 글
Histogram function (0) | 2017.12.08 |
---|---|
Copy files in a directory to another directory (0) | 2017.12.01 |
Perspective transform (0) | 2017.11.21 |
how to plot a histogram : matplotlib (0) | 2017.09.26 |
How to resize an image : skimage library (0) | 2017.08.01 |