utils.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:AIND-Planning 作者: udacity 项目源码 文件源码
def isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
        "Return true if numbers a and b are close to each other."
        return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)

# ______________________________________________________________________________
# Misc Functions


# TODO: Use functools.lru_cache memoization decorator
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号