判断路径下的文件夹是否存在,如果不存在创建一个文件夹

判断路径下的文件夹是否存在,如果不存在创建一个文件夹

if not os.path.exists('./qiutuLib'):
        os.mkdir('./qiutuLib')

猜你喜欢

转载自blog.csdn.net/qq_38499019/article/details/115584354