# coding:utf-8 # 数据对比,根据数据结构递归对比 class JsonCompare: def __init__(self, expect_data, real_data, is_debug=False): self.expect_data = expect_data self.real_data = real_data self.data_compare_result = [] # 数据对比结果 self.frame_cmpare_result = [] # 结构对比结果 self.defaultroot = '' self.compare(expect_data, real_data, self.defaultroot) if is_debug: for i in self.data_compare_result: print(i) for i in self.frame_cmpare_result: print(i) def compare</
JsonCompare Python环境下的json对比工具
最新推荐文章于 2024-06-27 11:15:57 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)