Python 创建文件夹

创建文件夹

# 创建文件夹,用makedirs参数
if not os.path.isdir('{}/{}'.format(RootDirPath, DirPath)):
	os.makedirs('{}/{}'.format(RootDirPath, DirPath))
posted @ 2019-11-07 08:44  赫凯  阅读(48)  评论(0)    收藏  举报