def solve_library_describe(self): res = Neo4jPrepare.get_entity("国家图书馆") #print(res) ans = "\n" + res[0]['describe'] return ans
def solve_card_describe(self): res = Neo4jPrepare.get_entity("证件") #print(res) ans = "\n" num = len(res) ans += "一共有" + str(num - 1) + "种读者卡\n" for r in res: if r['office_name'] == '第二代身份证': continue ans += '年龄' + r['age'] + '可以办理和使用' + r['office_name'] + "\n" return ans