示例#1
0
 def __pow__(self, other):
     if isinstance(other, Real):
         result = math.pow(self.data, other.data)
     elif isinstance(other, self.convertable):
         result = math.pow(self.data, other)
     return result
示例#2
0
文件: real.py 项目: nickspoon/part-ii
 def __pow__(self, other):
     if isinstance(other, Real):
         result = math.pow(self.data, other.data)
     elif isinstance(other, self.convertable):
         result = math.pow(self.data, other)
     return result