Python新建文件夹(如果不存在)

import os
if not os.path.exists(directory):
    os.mkdir(directory)

猜你喜欢

转载自www.cnblogs.com/yaos/p/12122269.html