Different answers when using anonymous variable and “normal” variable in Prolog

前端 未结 0 644
后悔当初
后悔当初 2021-01-02 12:35

I have the following database:

vegetarian(jose).
vegetarian(james).
vegetable(carrot).
vegetable(egg_plant).
likes(jose,X):-vegetable(X).
loves(Who,egg_plant)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题