摘要:
import os A: 遍历目录下的子目录和文件 for root,dirs ,files in os.walk(path) root:要访问的路径名 dirs:遍历目录下的子目录 files:遍历目录下的文件 B: 遍历目录下所有文件 os.listdir(path) 阅读全文
posted @ 2019-08-07 16:14
爽歪歪666
阅读(2661)
评论(0)
推荐(0)
爽歪歪666
不以物喜,不以己悲,努力才是永恒的主题。 |