本篇文章介紹Python 標準程式庫的os 與os.path 模組。 ... os.path.splitext(path), 分割路徑為(root, ext) ,其中root 為目錄包括檔名, ext 為副檔名。
確定! 回上一頁