import os
if not os.path.exists(directory):
os.makedirs(directory)
【python】安全创建新路径 python create new directory if not exists
最新推荐文章于 2024-10-27 17:07:04 发布
import os
if not os.path.exists(directory):
os.makedirs(directory)