ch07ex01.pro
来自「prolog,人工智能推理程序,运行环境prolog」· PRO 代码 · 共 24 行
PRO
24 行
/*
Turbo Prolog 2.0 Chapter 7, Example Program 1
Copyright (c) 1986, 88 by Borland International, Inc
*/
predicates
country(symbol)
print_countries
clauses
country(england).
country(france).
country(germany).
country(denmark).
print_countries :- country(X),
write(X), /* write the value of X */
nl, /* start a new line */
fail.
print_countries.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?