定义点类point,再定义一个类Line类,该类有一方法返回两点之间的距离,其...答:class Point(object):def __init__(self, x = 0, y = 0):self.x, self.y = x, y class Line(objec):def __init__(self, p0 = Point(), p1 = Point()):self.p0, self.p1 = p0, p1 def distance(self):return pow((pow((self.p0.x-self.p1.x),2) + pow((self.p...