Python中如何创建文件夹和嵌套文件夹的方法

1、mkdir()—》用于创建单个文件夹。rn    f=os.mkdir(“e:\\wuxiaobing”)rn2、makedirs–》创建嵌套的文件夹rnrn   f=os.makedirs(“e:\\wuxiaobing1\\1\\2\\”)