📜  prolog 断言 - Prolog 代码示例

📅  最后修改于: 2022-03-11 14:44:44.920000             🧑  作者: Mango

代码示例1
% inserts a fact into the database
% deprecated
assert(+Term).

% inserts a fact in the beginning of the database
asserta(+Term).

% inserts a fact in the end of the database
assertz(+Term).

% example
asserta(macaco('gorila')).