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