摘要: import os '''遍历打印指定文件夹下所有的文件名称 dirPath : 指定遍历的文件夹路径 ''' def listFiles(dirPath): # 准备一个空列表,用来存储遍历数据 fileList = [] fileName = [] ''' os.walk(dirPath) :走 阅读全文
posted @ 2023-11-25 04:28 昆山皮皮虾 阅读(148) 评论(0) 推荐(0) 编辑