什么导致了pyneo中的错误

2024-10-01 00:20:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我在一个循环中执行匹配密码。当执行到某个步骤时就会发生。然而,当我在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)

enter image description here

enter image description here


Tags: 代码ipidnode密码data步骤页面