from pathlib import Path; file = Path("blog/about.py") ... 利用Path 模組(Module)中的rename()方法,並且傳入新的檔案名稱及路徑即可實現檔案重新 ...
確定! 回上一頁