判断目录是否存在,如果不存在就创建多级目录

import os
if not os.path.isdir('/ceshi/aa/cc'):
    os.makedirs('/ceshi/aa/cc')

 

相关文章:

  • 2021-08-15
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-11-08
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-15
  • 2021-10-09
相关资源
相似解决方案