我在一个循环中执行匹配密码。当执行到某个步骤时就会发生。然而,当我在Neo4JWeb页面(127.0.0.1:7474)中执行时,它似乎很好。 以下是代码:
for ip in dns_list_exclude_center:
print("the current node ip:"+ip)
find_center_shortestpath="MATCH (p1:node{id: '210.94.77.102'}),(p2:node{id: '"+ip+"'}),p=shortestpath((p1)-[*]-(p2)) RETURN p"
print(find_center_shortestpath)
data_shortestpath=graph.run(find_center_shortestpath).data()
#shortestpath_nodelist=re.findall(r'\(_(\d+)\)',str(data_shortestpath))
print(data_shortestpath)
目前没有回答
相关问题 更多 >
编程相关推荐