pathlib 是它的替代品,在 os.path 上的基礎上進行了封裝,實現了路徑的對象 ... 於os.listdir, 但是可以添加匹配條件 p.rglob('*') # 相當於os.walk, ...
確定! 回上一頁