W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
# 导入数学库 import math # 比较两个数值的接近程度 print(math.isclose(1.233, 1.4566)) print(math.isclose(1.233, 1.233)) print(math.isclose(1.233, 1.24)) print(math.isclose(1.233, 1.233000001))