monitor.py 文件源码

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

项目:data_kennel 作者: amplify-education 项目源码 文件源码
def _diff_monitors(self, monitor1, monitor1_name, monitor2, monitor2_name):
        """
        Convenience method for performing a diff of two monitors, returning the diff as a string.
        """
        return "\n".join(difflib.unified_diff(
            json.dumps(monitor1, indent=4, sort_keys=True).splitlines(),
            json.dumps(monitor2, indent=4, sort_keys=True).splitlines(),
            fromfile=monitor1_name,
            tofile=monitor2_name
        ))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号