from neo4j.v1 import GraphDatabase, basic_auth
driver = GraphDatabase.driver("bolt://192.168.0.69:6969", auth=basic_auth("c8c8", "c8c8"))
session = driver.session()
session.run("CREATE (a:Person2 {name: {name}, title: {title}})",
{"name": "Arthur", "title": "King"})
for i in range(3000):
tt = "CREATE (a:Person" + str(i) + " {name: {name}, title: {title}})"
session.run(tt,
{"name": "Arthur", "title": "King"})
print (i)
result = session.run("MATCH (a:Person) WHERE a.name = {name} "
"RETURN a.name AS name, a.title AS title",
{"name": "Arthur"})
for record in result:
print("%s %s" % (record["title"], record["name"]))
session.close()
错误是:
local move = game.StarterGui.BottmRight.Hotbar
local moves = false
script.Parent.MouseButton1Click:connect(function()
if moves == false then
move:TweenPosition{UDim2.new{0.724,0,0.919,0},"In", "Bounce", 2}
moves = true
wait(2)
move.Visible = true
else
move:TweenPosition{UDim2.new{0.912,0,0.919,0},"Out", "Quint", 2}
moves = false
move.Visible = false
有什么想法吗?
答案 0 :(得分:1)
你需要一个“结束”来关闭条件的else块。尝试将“结束”作为最后一行......因为您还需要关闭:connect
方法
答案 1 :(得分:1)
您需要两个end
语句(关闭if ... else
并关闭function()
),并关闭)
方法的connect
。因此,您需要添加end end)
来修复错误。