我需要有人可以幫助如何在序言 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,'.'(