分類
共 7 篇文章
115 - Python 檔案處理
【Python 檔案處理 #7】python 移除資料夾範例 rmdir shutil.rmtree()
【Python 檔案處理 #6】python 建立資料夾範例 mkdir os.makedirs()
【Python 檔案處理 #5】python 開關檔範例 與 程式模板 with open / file open
【Python 檔案處理 #4】在 python 中利用 os.chmod 更改檔案的權限 (chmod 777)
【Python 檔案處理 #3】確認檔案是否存在 os.path.isfile / 確認資料夾是否存在 os.path.isdir is folder / file exist
【Python 檔案處理 #2】利用 shutil 來複製檔案 shutil copy file
【Python 檔案處理 #1】取出檔案名稱 (含副檔名、不含副檔名) 取出檔名路徑, 不要副檔名 (os path split basename)