📜  python list all csv in dir - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:54.697000             🧑  作者: Mango

代码示例1
from os import listdir

all_files = listdir("./path/to/file")    
csv_files = list(filter(lambda f: f.endswith('.csv'), all_files))