Я выполнил матч-шифр в цикле. И это произошло при выполнении определенного шага. Тем не менее, кажется, что это хорошо, когда я выполняю на веб-странице neo4j (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)