python创建文件夹

python学习网 2019-11-30 00:00:02

filePath = 'D:\12345'

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

阅读(2475) 评论(0)