0

如何在剪辑中定义变量并在执行剪辑文件后返回一个值,以便我可以将值分配给 python 变量。

from clips import Environment, Symbol 
env = Environment()
env.load('E:\\constructs_file_name.clp')
env.run()
#I am expecting a value after this execuation.

这是我的constructs_file_name.clp

(deftemplate master-sequence
  (slot speed (type INTEGER))
  )

(defrule event1
=>
(printout t "Do some operation with clips variable and return a response" crlf))

谢谢你。

4

0 回答 0