from decimal import Decimal Decimal(self.jieEe[0]['JE']).quantize(Decimal('0.0')) 采用 self.assertEqual判断时候可以使左右值得精确度保持一致