我需要有人可以帮助如何在序言 Define a predicate oddMultOf3/1 that determines whether an integer is an odd multiple of 3. A user should be able to enter the predicate with an integer, e.g. oddMultOf3(42) and evaluat
在我探索记录列表的不同方式期间,我对以下列表感兴趣:[[a,b]|c],它出现在Pereira的书“Prolog and Natural Language Analysis” Shieber(digital edition的第42页)。 起初我以为这样的符号在语法上是不正确的,因为它不得不说0123',但是在使用write_canonical/1之后,Prolog返回了'.'('.'(a,'.'(