from pathlib import Path Path("/my/directory").mkdir(parents=True, exist_ok=True) 對於舊版本的Python,我看到兩個質量很好的答案,每個都有一個 ...
確定! 回上一頁