网站首页 站内搜索

搜索结果

查询Tags标签: makedirs,共有 1条记录
  • 【Python】路径相关

    Python自带os.path库相关函数 一、判断文件/路径是否存在os.path.isfile() os.path.isdir() os.path.exists() 返回值:True/False二、创建文件夹os.makedirs()import os if not os.path.exists(output_dir):os.mkdir()os.makedirs() # 可创建子文件夹三、获取路径下所有…

    2022/9/4 14:25:48 人评论 次浏览
扫一扫关注最新编程教程