top of page
1ステップ前の自分の座標を取得したい
def agt_step(self):
if count_step() > 1:
past_self = get_history(self, 1)
x_delta = (self.x - past_self.x)
以上のコードを実行すると以下のエラーが出てきてしまいます。
AttributeError: 'History' object has no attribute 'x'
1ステップ前の自分の座標を取得するにはどうしたら良いですか。
def agt_step(self):
if count_step() > 1:
past_self = get_history(self, 1)
x_delta = (self.x - past_self.x)
以上のコードを実行すると以下のエラーが出てきてしまいます。
AttributeError: 'History' object has no attribute 'x'
1ステップ前の自分の座標を取得するにはどうしたら良いですか。
bottom of page
