是否有可能在SWI Prolog中定义一个类似于Sicstus Prolog中的undo谓词?从西克斯都的描述中: undo(:Goal)
The goal call(Goal) (see section Control) is executed on backtracking. This predicate is useful if the Goal performs some side-effect that must be done on backtracking to undo another side-effect. SWI谓词setup_call_cleanup不会这样做,因为它
为了简化开发,我与samba共享了/var/www/html文件夹。我可以从我的计算机在Pi文件夹中创建新文件,但他们具有以下权限:-rwxrw-1 pi pi 52 juin 10 17:54 test.php 有了这些权限,Apache就无法读取该文件。因此,每次我都需要发送以下命令来使Apache可读该文件: chmod a+rwx test.php 那么我的权限是:-rwxrwxrwx 1 pi pi 52 jui