W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
# 导入数学库
import math
​
# 比较两个数值的接近程度
print(math.isclose(8.005, 8.450, abs_tol=0.4))
print(math.isclose(8.005, 8.450, abs_tol=0.5))