Python class中的other

定义了一个Point类,类中有计算两点距离的方法,self表示本类,other表示另外一个类,能够直接使用属性。html other参数其余用法 https://www.cnblogs.com/hujingnb/p/10246385.htmlthis class Point(object):htm     def __init__(self, x=0, y=0):blog         self
相关文章
相关标签/搜索