converter.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:Zabbix-Network-Weathermap 作者: Prototype-X 项目源码 文件源码
def save(self, path: str):
        cfg = self._dict_to_orderdict(self.cfg_dict)
        with open(path[:-3] + 'yaml', 'w') as cfg_file:
            try:
                yaml3ed.dump(cfg, cfg_file, explicit_start=True, explicit_end=True,
                             default_flow_style=False, allow_unicode=True, version=(1, 2),
                             indent=2)
            except yaml3ed.YAMLError as exc:
                print(exc)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号