摘要: Python遍历文件夹及子文件夹: import os # 列出一个文件夹里的所有文件,文件夹 def scan_dir_files(files): if os.path.exists(files):# os.path.exists() 判断文件或文件夹是否存在 lst = os.listdir(f 阅读全文
posted @ 2026-03-06 15:20 tg_im6622 阅读(26) 评论(0) 推荐(0)