0

我想知道是否有可能通过换行符而不是空格来分隔答案集中的谓词。例子:

node(1..3).

clingo path.lp 

clingo version 5.4.0
Reading from .../path.lp
Solving...
Answer: 1
node(1) node(2) node(3)
SATISFIABLE

但我想有这个输出

clingo version 5.4.0
Reading from .../path.lp
Solving...
Answer: 1
node(1) 
node(2) 
node(3) 
SATISFIABLE
4

1 回答 1

0

找到了。我打电话

clingo path.lp --out-ifs=\\n 

代替

clingo path.lp 
于 2020-11-26T15:10:38.753 回答