会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
codtina
博客园
首页
新随笔
联系
订阅
管理
2024年12月16日
Python遍历文件夹及子文件夹
摘要: Python遍历文件夹及下属的子文件夹(摘自: https://www.cnblogs.com) import os # 列出一个文件夹里的所有文件,文件夹 def scan_dir_files(files): if os.path.exists(files):# os.path.exists()
阅读全文
posted @ 2024-12-16 16:48 沉雪's
阅读(551)
评论(0)
推荐(0)