report_diff_values# astropy.utils.diff.report_diff_values(a, b, fileobj=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, indent_width=0, rtol=0.0, atol=0.0)[源代码]# 将两个值之间的差异报告写入指定的类文件对象。 参数: a, b要比较的值。任何可以转换为字符串并使用 difflib 应该行得通。 fileobj : object对象要写入的类似文件的对象。默认值是 sys.stdout ,写入终端。 indent_width : intPython :整型列到字符缩进。 rtol, atol : floatPython :浮点接受的相对和绝对公差 numpy.allclose() . 返回: identical : bool布尔True 如果没有差异,否则 False .