【发布时间】:2016-03-08 04:31:23
【问题描述】:
我使用了来自 pythonhosted.org 的示例代码,但似乎没有任何反应。这是我使用的代码:
results = mysearcher.search(myquery)
for hit in results:
print(hit["title"])
我在 python 中输入了这段代码,但它给出了一个错误提示 mysearcher is not defined。所以我真的不确定我是否遗漏了一些东西,因为我只是想了解一些基础知识来让我启动和运行。
【问题讨论】:
标签: python highlighting whoosh