from pytest import approx >>> 0.1 + 0.2 == approx(0.3) True ... 通过将参数传递给 approx 构造函数,可以更改相对容差和绝对容差:
確定! 回上一頁