版本变化后API变了, 即py2neo
V4把find
删除了
原来的代码
graph = Graph("http://localhost:7474",
username="neo4j",
password="root")
f = graph.find(
label="List",
property_key="name",
)
print(f)
from py2neo import Graph, Node,NodeMatcher
graph = Graph("http://localhost:7474",
username="neo4j",
password="root")
matcher = NodeMatcher(graph)
f = matcher.match(label="List").first()
print(f)
python操作neo4j看他的评论!