本文整理汇总了Python中term.Term.no方法的典型用法代码示例。如果您正苦于以下问题:Python Term.no方法的具体用法?Python Term.no怎么用?Python Term.no使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类term.Term
的用法示例。
在下文中一共展示了Term.no方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: exposed_modifier
# 需要导入模块: from term import Term [as 别名]
# 或者: from term.Term import no [as 别名]
def exposed_modifier(asker, rep):
head = asker.ask(fields.get_field(representations.head(), rep)).answer
if head is None:
return asker.reply(answer=T.no())
else:
result = strings.to_str(asker, head) not in hidden_modifier_heads
return asker.reply(answer=T.from_bool(result))
示例2: orthogonal
# 需要导入模块: from term import Term [as 别名]
# 或者: from term.Term import no [as 别名]
def orthogonal(asker, field1, field2):
if booleans.ask_firmly(asker, builtins.equal(field1, field2)):
return asker.reply(answer=T.no())
result = orthogonality_tester.dispatch(asker, field1, field2)
if result is not None: return result
result = orthogonality_tester.dispatch(asker, field2, field1)
if result is not None: return result
示例3: snoc_isnt_empty
# 需要导入模块: from term import Term [as 别名]
# 或者: from term.Term import no [as 别名]
def snoc_isnt_empty(asker):
return asker.reply(answer=T.no())
示例4: cons_isnt_empty
# 需要导入模块: from term import Term [as 别名]
# 或者: from term.Term import no [as 别名]
def cons_isnt_empty(asker):
return asker.reply(answer=T.no())
示例5: yes_to_no
# 需要导入模块: from term import Term [as 别名]
# 或者: from term.Term import no [as 别名]
def yes_to_no(asker):
return asker.reply(answer=T.no())
示例6: opposite
# 需要导入模块: from term import Term [as 别名]
# 或者: from term.Term import no [as 别名]
def opposite(a):
if a.head == T.yes.head:
return T.no()
elif a.head == T.no.head:
return T.yes()
return T(opposite.head, a=a)