python实现一次创建多级目录的方法
作者:秋风秋雨 时间:2021-10-20 11:37:31
本文实例讲述了python实现一次创建多级目录的方法。分享给大家供大家参考。具体实现方法如下:
import os
os.makedirs( "/home/jb51/data" )
这样就可以创建一个 * 目录。
希望本文所述对大家的Python程序设计有所帮助。
标签:python,创建,目录
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
div+css实现圆角边框
2007-10-21 08:55:00
python入门:这篇文章带你直接学会python
2021-04-15 04:46:42
![](https://img.aspxhome.com/file/2023/4/63174_0s.png)
实例解析Python设计模式编程之桥接模式的运用
2021-06-03 18:48:04
![](https://img.aspxhome.com/file/2023/5/133215_0s.gif)
SQL SERVER 建立索引
2010-07-02 21:01:00
为什么视觉设计师需要懂HTML
2009-06-25 14:16:00
python itertools包内置无限迭代器
2023-11-16 18:58:59
Python爬虫基础之简单说一下scrapy的框架结构
2022-01-04 23:19:00
![](https://img.aspxhome.com/file/2023/8/87598_0s.png)
Python Selenium安装及环境配置的实现
2023-01-02 18:19:18
![](https://img.aspxhome.com/file/2023/4/117434_0s.png)
python3 字符串/列表/元组(str/list/tuple)相互转换方法及join()函数的使用
2023-09-10 17:20:38
详解pandas DataFrame的查询方法(loc,iloc,at,iat,ix的用法和区别)
2022-01-24 04:44:33
![](https://img.aspxhome.com/file/2023/0/99270_0s.png)
Python文本统计功能之西游记用字统计操作示例
2023-08-10 00:12:59
![](https://img.aspxhome.com/file/2023/2/131342_0s.png)
Python中的Classes和Metaclasses详解
2022-07-08 09:28:47
Python安装第三方库及常见问题处理方法汇总
2022-11-22 04:40:51
python神经网络特征金字塔FPN原理
2023-12-20 02:21:01
![](https://img.aspxhome.com/file/2023/9/107509_0s.png)
javascript实现日期3级联动下拉框选择菜单
2023-10-19 02:15:34
做新产品?悠着点
2009-03-01 13:10:00
Python采用raw_input读取输入值的方法
2021-09-08 03:19:05
趣用文化元素
2009-09-03 11:53:00
![](https://img.aspxhome.com/file/UploadPic/20099/3/0909-using_culture_elements-01-12s.jpg)
Python PO设计模式的具体使用
2023-10-31 18:47:38
![](https://img.aspxhome.com/file/2023/8/125158_0s.png)
ASP技巧:禁用清除页面缓存的五种方法
2009-07-21 12:33:00