Python创建单个文件夹
nowpath = os.getcwd()
print("现在的路径为:",nowpath)
fileName = u"文件夹1"
fileNamePath = nowpath+"\\"+fileName
os.mkdir(fileNamePath)
Python创建嵌套文件夹的方法:
nowpath = os.getcwd()
print("现在的路径为:",nowpath)
fileName = u"文件夹1"
fileName1 = u"文件夹2"
fileNamePath = nowpath+"\\"+fileName+"+"\\"+"fileName1"
os.makedirs(fileNamePath)