import os
# 创建文件夹
def Create_folder(filename):
filename = filename.strip()
filename = filename.rstrip("\\")
isExists = os.path.exists(filename)
if not isExists:
os.makedirs(filename)
print(filename+"创建成功")
return True
else:
print(filename+"已存在")
return False
filename = "./model"
Create_folder(filename)