作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在阅读Prolog教程。它告诉我可以通过键入以下内容来加载其他序言文件:
[filename].
ERROR: load_files/2: Arguments are not sufficiently instantiated.
12 ?- [KB5].
ERROR: load_files/2: Arguments are not sufficiently instantiated
最佳答案
$ cat junk.pl
test(ok).
$ prolog
Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 5.8.0)
Copyright (c) 1990-2009 University of Amsterdam.
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
?- [junk].
% junk compiled 0.00 sec, 24 bytes
true.
['KB5']
看看是否有帮助。接下来尝试
[kb5]
看看是否有帮助。最后,尝试一个绝对的最小示例,例如我提供的示例,看看是否可以那样加载。
$ cp junk.pl JUNK.pl
$ prolog
Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 5.8.0)
Copyright (c) 1990-2009 University of Amsterdam.
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
?- [JUNK].
ERROR: load_files/2: Arguments are not sufficiently instantiated
?- ['JUNK'].
% JUNK compiled 0.00 sec, 1,656 bytes
true.
['KB5']
,您的错误可能会消失。
关于prolog - 在Prolog中加载文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4495977/
我是一名优秀的程序员,十分优秀!