当前位置: 代码迷 >> 综合 >> python判断文件路径是否存在,不存在则创建路径
  详细解决方案

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

热度:36   发布时间:2024-03-08 07:45:40.0
                if not os.path.exists(file_path):os.makedirs(file_path)

 

  相关解决方案