'dict'개체에 'has_key'속성이 없습니다. Python에서 그래프를 탐색하는 동안 다음 오류가 발생합니다. 'dict'개체에 'has_key'속성이 없습니다. 내 코드는 다음과 같습니다. def find_path(graph, start, end, path=[]): path = path + [start] if start == end: return path if not graph.has_key(start): return None for node in graph[start]: if node not in path: newpath = find_path(graph, node, end, path) if newpath: return newpath return None 이 코드는 한 노드에서 다른 노드로의 경로..