WebLinuxStudy

导航

 

import os

filePath = 'D:\12345'

# 判断文件夹是否存在,不存在则创建文件夹
if not os.path.exists(filePath):
  os.makedirs(filePath)

posted on 2019-11-29 14:39  WebLinuxStudy  阅读(2399)  评论(0编辑  收藏  举报