Pyke introduces a form of Logic Programming (inspired by Prolog) to
the Python community by providing a knowledge-based inference engine
(expert system) written in 100% Python.
Unlike Prolog, Pyke integrates with Python allowing you to invoke Pyke
from Python and intermingle Python statements and expressions within
your expert system rules.
您可能想使用pyDatalog,这是我为实现Datalog的Python开发的逻辑编程库。它还与SQLAlchemy一起使用逻辑子句查询关系数据库。
或许你应该在谷歌上搜索“Python中的逻辑编程”。Pyke看起来很有前途:
LogPy是Python中关系编程语言miniKanren的实现。它遵循Clojure中卓越的逻辑编程解决方案^{} 的传统。LogPy是为与已有的代码库的互操作性而设计的。
相关问题 更多 >
编程相关推荐