Python 创建文件夹

创建文件夹

# 创建文件夹,用makedirs参数
if not os.path.isdir('{}/{}'.format(RootDirPath, DirPath)):
	os.makedirs('{}/{}'.format(RootDirPath, DirPath))
发布了163 篇原创文章 · 获赞 117 · 访问量 21万+

猜你喜欢

转载自blog.csdn.net/u010095372/article/details/102946939