Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
?- assert(p(a)),assert(p(b)),p(X). X = a yes
这个查询的效果是什么,为什么它会返回这个特定的结果?
就好像您查询了以下来源:
输入.pl:
p(a). p(b).
?- p(X)
p(X)
X = a yes