You should write : if (self.a != 0) and (self.b != 0) : " & " is the bit wise operator and does not suit for boolean operations. The equivalent of " && " is ...
確定! 回上一頁