os.makedires
时间: 2024-05-18 14:13:47 浏览: 86
os.makedires函数用于创建多层目录。它会根据给定的路径依次创建目录,如果路径中的某个目录不存在,就会创建它。这个函数与os.mkdir函数的区别在于,os.mkdir只能创建单层目录,而os.makedires可以创建多层目录。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [《python》004 文件](https://blog.csdn.net/weixin_43968672/article/details/86707193)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [对python中的 os.mkdir和os.mkdirs详解](https://download.csdn.net/download/weixin_38748740/12866692)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文