pathlib 是它的替代品,在 os.path 上的基础上进行了封装,实现了路径的对象 ... 于os.listdir, 但是可以添加匹配条件 p.rglob('*') # 相当于os.walk, ...
確定! 回上一頁