【1行】Pythonでフォルダが無い時だけ新規作成

スポンサーリンク
python Python
import os

# pathに作成したいディレクトリのパスを入れる
os.makedirs(path, exist_ok=True)

コメント

タイトルとURLをコピーしました