摘要: 日常程序编写中常常遇到需要获取目录下文件的功能,对该功能做个简单整理,供大家参考。 实现遍历目录文件最常用的方法是os.listdir(),还有一种os.walk方法。一、os.listdir方法 源码中对该方法的描述“Return a list containing the names of th 阅读全文
posted @ 2021-03-04 17:48 MaxYong 阅读(716) 评论(0) 推荐(1) 编辑