会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
xuyuchen
首页
新随笔
管理
2018年1月30日
输出文件夹大小
摘要: import os, re """ 查看文件夹下的所有文件及文件夹 join为拼接函数 """ def Look_File(path): for root , dirs, files in os.walk(path): print(root) #主目录 for item in files: #主目录下的文件夹 print(os.path.join(root...
阅读全文
posted @ 2018-01-30 21:47 PhilXu
阅读(184)
评论(0)
推荐(0)
编辑