您的位置: 首页 > IT文章 > Python新建文件夹(如果不存在) Python新建文件夹(如果不存在) 分类: IT文章 • 2024-03-25 14:58:07 import os if not os.path.exists(directory): os.mkdir(directory)