1.核心代码 使用py2neo连接neo4j的方法: from py2neo import Graph graph = Graph(\"http://localhost:7474\", auth=(\"neo4j\", \"neo4j\"))