python创建文件夹

filePath = 'D:\12345'

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

猜你喜欢

转载自www.cnblogs.com/WebLinuxStudy/p/11957652.html