我正在尝试创建一个新对象,但我在回溯中收到错误:
p1 = point(point.x+jumpValue, point.y)
TypeError: 'point' object is not callable
我在同一个文件中定义了这个类:
class point(object):
def __init__(self, x, y):
self.x = x
self.y = y
我正在尝试创建一个新对象,但我在回溯中收到错误:
p1 = point(point.x+jumpValue, point.y)
TypeError: 'point' object is not callable
我在同一个文件中定义了这个类:
class point(object):
def __init__(self, x, y):
self.x = x
self.y = y