📜  python 几乎相等 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:46.362000             🧑  作者: Mango

代码示例1
from math import isclose
a = 1.0
b = 1.00000001
assert isclose(a, b, abs_tol=1e-8)