How to have an ordered list of files with digits?
How to have an ordered list of files with digits? Question: I have a folder of files and want to read the files one by one because it is frames of a video. However, when I am trying to have an ordered list of files, it is ordered as follows: data_dir = ‘./data/’ filenames =listdir(data_dir) …