日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

python 文件操作 os.mkdir()函数

發布時間:2025/3/19 46 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python 文件操作 os.mkdir()函数 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

os.mkdir() 方法用于以數字權限模式創建目錄。默認的模式為 0777 (八進制)。

os.mkdir(path[, mode])

path – 要創建的目錄
mode – 要為目錄設置的權限數字模式(windows平臺忽略該參數)

def mkdir(*args, **kwargs): # real signature unknown"""Create a directory.If dir_fd is not None, it should be a file descriptor open to a directory,and path should be relative; path will then be relative to that directory.dir_fd may not be implemented on your platform.If it is unavailable, using it will raise a NotImplementedError.The mode argument is ignored on Windows.創建目錄。如果dir_fd不是None,它應該是一個打開到目錄的文件描述符,路徑應該是相對的;然后路徑將是相對于該目錄的。dir_fd可能無法在您的平臺上實現。如果它不可用,則使用它將引發NotImplementedError。在Windows上忽略mode參數。"""pass

參考文章:Python os.mkdir() 方法

總結

以上是生活随笔為你收集整理的python 文件操作 os.mkdir()函数的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。