python判断文件是否存在,不存在则创建。
def _mkdir_output(self, file_dir): if not os.path.exists(file_dir): os.makedirs(file_dir)