会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
黄聪
论SEO对人类的重要性,请看a56爆大奖在线娱乐的博客:hcsem.com
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2022年12月3日
Python遍历某个文件夹下的所有文件夹,a56爆大奖在线娱乐文件夹只保留最新7个文件
摘要: import os root = r"D:\_back" for dirpath, dirnames, filenames in os.walk(root): for dirname in dirnames: _dir = os.path.join(dirpath,dirname) lists =
阅读全文
posted @ 2022-12-03 08:42 黄聪
阅读(160)
评论(0)
推荐(0)
编辑