标签: prolog
以下内容的输出,无论是真还是假:
The following code implements the negation as failure in Prolog not(G). not(G) :- G, !, fail.
是对还是错?任何人都可以解释第二个命令的作用,not(G) :- G, !, fail。 ?
not(G) :- G, !, fail