import os

filePath = 'D:\12345'

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-12
  • 2022-01-10
  • 2022-12-23
  • 2021-06-20
  • 2021-11-09
  • 2022-01-14
相关资源
相似解决方案