用python实现:如果目录不存在则创建多级目录

代码:

 import os
 if not os.path.exists('你的路径名称'):
            os.makedirs('你的路径名称')

猜你喜欢

转载自blog.csdn.net/weixin_44025103/article/details/129907190