示例#1
0
 def __ne__(self, other):
     return Boolean.Boolean(self.value != other.value)
示例#2
0
 def __eq__(self, other):
     return Boolean.Boolean(self.value == other.value)
示例#3
0
 def __gt__(self, other):
     return Boolean.Boolean(self.value > other.value)
示例#4
0
 def __contains__(self, x):
     if type(x) == String:
         return Boolean.Boolean(x.value in self.value)
     else:
         return Boolean.Boolean(x in self.value)
示例#5
0
 def __le__(self, other):
     return Boolean.Boolean(self.value <= other.value)