python判断文件夹是否存在,不存在则创建

import os
def create_dir_not_exist(path):
    if not os.path.exists(path):
        os.mkdir(path)
posted @ 2023-06-29 10:05  松松哥、  阅读(25)  评论(0)    收藏  举报  来源