pathlib 是它的替代品,在 os.path 上的基礎上進行了封裝,實現了路徑的對象 ... p = Path(r'd:\test\11\22') p.mkdir(exist_ok=True) # 創建文件 ...
確定! 回上一頁