pytest approx 函数看起来真的很酷,正如他们在documentation 中所说的那样它使用非常直观的语法: >>> from pytest import approx >>> 0.1 + 0.2 == approx(0.3) True
確定! 回上一頁