euclid.py 文件源码

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

项目:zellij 作者: nedbat 项目源码 文件源码
def distance(self, other):
        """Compute the distance from this Point to another Point."""
        assert isinstance(other, Point)
        x1, y1 = self
        x2, y2 = other
        return math.hypot(x2 - x1, y2 - y1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号