python判断路径不存在,创建路径

import os

path = "D:/test"

if not os.path.exists(path):
        os.makedirs(path)

猜你喜欢

转载自blog.csdn.net/qwcsl/article/details/129956221