📅  最后修改于: 2022-03-11 14:45:42.079000             🧑  作者: Mango
#creates a directory without throwing an error
import os
def create_dir(dir):
if not os.path.exists(dir):
os.makedirs(dir)
print("Created Directory : ", dir)
else:
print("Directory already existed : ", dir)
return dir