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(user(anna)). assert(user(tom)).
但是当我查询
?- user(X).
我只得到
X = anna.
我不应该得到另一行说 X = tom 吗?
您需要在第一个答案后键入分号:
?- user(X). X = anna ; X = tom.