复制代码def write_yamls(data: List[Dict], file: str = None): return __write_yaml(data, yaml.dump_all, file)