Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
fa9bbc3e
Commit
fa9bbc3e
authored
Dec 31, 2021
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
58036392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
apps/utils/neo4j_conn.py
+8
-2
No files found.
apps/utils/neo4j_conn.py
View file @
fa9bbc3e
...
@@ -3,10 +3,16 @@ from py2neo import Graph
...
@@ -3,10 +3,16 @@ from py2neo import Graph
def
conn_neo4j
():
def
conn_neo4j
():
# graph = Graph("http://localhost:7474", username="neo4j", password="123456")
# graph = Graph("http://localhost:7474", username="neo4j", password="123456")
graph
=
Graph
(
"http://localhost:7476"
,
username
=
"neo4j"
,
password
=
"
neo4j
"
)
graph
=
Graph
(
"http://localhost:7476"
,
username
=
"neo4j"
,
password
=
"
123456
"
)
return
graph
return
graph
def
neo4j_dict
():
def
neo4j_dict
():
ptp
=
{
"煤层气开采储运利用"
:
"煤层气开采储运利用"
}
ptp
=
{
"煤层气开采储运利用"
:
"煤层气开采储运利用"
,
"光机电"
:
"光机电"
,
"光学镜头"
:
"光学镜头"
,
"硬质合金"
:
"硬质合金"
,
"工业机器人"
:
"工业机器人"
,
"碳基新材料"
:
"碳基新材料"
}
return
ptp
return
ptp
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment