📅  最后修改于: 2022-03-11 15:01:17.690000             🧑  作者: Mango
current = goal
path = []
while current != start:
path.append(current)
current = came_from[current]
path.append(start) # optional
path.reverse() # optional