import os # 导入必要模块
main_path="I:/s/ss/"#文件保存路径,如果不存在就会被重建
if not os.path.exists(main_path):#如果路径不存在
os.makedirs(main_path)
2021年7月7日 更新
os.makedirs(path,exist_ok=True)
import os # 导入必要模块
main_path="I:/s/ss/"#文件保存路径,如果不存在就会被重建
if not os.path.exists(main_path):#如果路径不存在
os.makedirs(main_path)
2021年7月7日 更新
os.makedirs(path,exist_ok=True)