Skip to content
  • 首页
  • PHP源码
  • html5网页模板
  • js特效
  • Window软件
  • Mac软件
  • 服务器
  • 其他
Search
源码巴士
  • Sample Page

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

import os
def create_not_exist_dir(path):
    if not os.path.exists(path):
        is.mkdir(path)

版权声明:本文为weixin_42962516原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_42962516/article/details/115523005
文章导航
←腾讯大数据总体架构图,对外公开!
Vmware vSphere 5.0系列教程之三 vCenter介绍及安装配置→

Copyright © 2022 源码巴士  鲁ICP备19024253号-1