python windows下建立文件夹

import os
path = "已有文件夹路径"
title = "新文件夹名称"
new_path = os.path.join(path, title)
if not os.path.isdir(new_path):
    os.makedirs(new_path)

你可能感兴趣的:(windows,python,文件夹,title)