新しいオブジェクトを作成しようとしていますが、トレースバックに次のエラーが表示されます:
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