# class Point:
#     def __init__(self, a=0, b=0):
#         self.x = a
#         self.y = b
#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
# 计算A点与B点之间的距离
# @param point_A Point类 A点
# @param point_B Point类 B点
# @return double浮点型
#
class Solution:
    def calculateDistance(self , point_A: Point, point_B: Point) -> float:
        # write code here
        x = (point_B.x - point_A.x)**2 
        y = (point_B.y - point_A.y)**2
        z = abs(y + x) ** 0.5
        return z

point的类和方法已经写好,直接调用即可得到点的横纵坐标