one 文件夹 已经存在
exit(...)
exit([status])
Exit the interpreter by raising SystemExit(status).
If the status is omitted or None, it defaults to zero (i.e., success).
If the status is an integer, it will be used as the system exit status.
If it is another kind of object, it will be printed and the system
exit status will be one (i.e., failure).
若 output_dir 已经存在 报错
two 若文件夹 事先不存在
若output_dir 事先不存在, 不报错了
原因是因为我后面加了if 判断部分的代码