我在试图用单引号'
断言事实时,swi-prolog给出了这个错误:
raise PrologError("".join(["Caused by: '", query, "'."]))
pyswip.prolog.PrologError: Caused by: 'assertz((fact('kh'an'))).'.
这是发生错误的python片段:
linkage = "linkage('"+str(read_str.lower())+"', '"+ str(sub_link) +"')"
self.prolog_rule_identify.assertz(linkage)
read_str
为today's date
,Men's wear
等