python遍历指定文件夹

import os
import pandas as pd
filePath_list = ['./早会经营/早会组织', './早会经营/激励专题', './早会经营/节假日专题', './营销技巧/销售技巧', './营销技巧/高端客户', './费率表']
for filepath_name in filePath_list:
    print(filepath_name)
    print(100*"*")
    for filename in os.listdir(filepath_name):
        print(filename)

猜你喜欢

转载自blog.csdn.net/smsmtiger/article/details/88995365