config.py 文件源码

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

项目:Zabbix-Network-Weathermap 作者: Prototype-X 项目源码 文件源码
def save(self, path: str):
        cfg = self._dict_to_orderdict(self.map_config)
        with open(path + '/' + self.map_data['name'] + '.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))
            except yaml3ed.YAMLError as exc:
                print(exc)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号