@anonymous/

CaringShabbyRoebuck

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5949153067657702","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"Y2xhc3MgT3Bwb3NpdGVNYXRoKCk6CiAgICBkZWYgX19pbml0X18oc2VsZiwgbnVtKToKICAgICAgICBzZWxmLm51bSA9IG51bQogICAgZGVmIF9fZXFfXyhzZWxmLCBudW0pOgogICAgICAgIGlmIGlzaW5zdGFuY2UobnVtLCBPcHBvc2l0ZU1hdGgpOgogICAgICAgICAgICBudW0gPSBudW0ubnVtCiAgICAgICAgcmV0dXJuIHNlbGYubnVtICE9IG51bQogICAgZGVmIF9fZ3RfXyhzZWxmLCBudW0pOgogICAgICAgIGlmIGlzaW5zdGFuY2UobnVtLCBPcHBvc2l0ZU1hdGgpOgogICAgICAgICAgICBudW0gPSBudW0ubnVtCiAgICAgICAgcmV0dXJuIHNlbGYubnVtIDw9IG51bQogICAgZGVmIF9fZ2VfXyhzZWxmLCBudW0pOgogICAgICAgIGlmIGlzaW5zdGFuY2UobnVtLCBPcHBvc2l0ZU1hdGgpOgogICAgICAgICAgICBudW0gPSBudW0ubnVtCiAgICAgICAgcmV0dXJuIHNlbGYubnVtIDwgbnVtCiAgICBkZWYgX19sdF9fKHNlbGYsIG51bSk6CiAgICAgICAgaWYgaXNpbnN0YW5jZShudW0sIE9wcG9zaXRlTWF0aCk6CiAgICAgICAgICAgIG51bSA9IG51bS5udW0KICAgICAgICByZXR1cm4gc2VsZi5udW0gPj0gbnVtCiAgICBkZWYgX19sZV9fKHNlbGYsIG51bSk6CiAgICAgICAgaWYgaXNpbnN0YW5jZShudW0sIE9wcG9zaXRlTWF0aCk6CiAgICAgICAgICAgIG51bSA9IG51bS5udW0KICAgICAgICByZXR1cm4gc2VsZi5udW0gPiBudW0KICAgIGRlZiBfX2FkZF9fKHNlbGYsIG51bSk6CiAgICAgICAgaWYgaXNpbnN0YW5jZShudW0sIE9wcG9zaXRlTWF0aCk6CiAgICAgICAgICAgIG51bSA9IG51bS5udW0KICAgICAgICByZXR1cm4gc2VsZi5udW0gLSBudW0KICAgIGRlZiBfX3N1Yl9fKHNlbGYsIG51bSk6CiAgICAgICAgaWYgaXNpbnN0YW5jZShudW0sIE9wcG9zaXRlTWF0aCk6CiAgICAgICAgICAgIG51bSA9IG51bS5udW0KICAgICAgICByZXR1cm4gc2VsZi5udW0gKyBudW0KICAgIGRlZiBfX211bF9fKHNlbGYsIG51bSk6CiAgICAgICAgaWYgaXNpbnN0YW5jZShudW0sIE9wcG9zaXRlTWF0aCk6CiAgICAgICAgICAgIG51bSA9IG51bS5udW0KICAgICAgICByZXR1cm4gc2VsZi5udW0gLyBudW0KICAgIGRlZiBfX2Rpdl9fKHNlbGYsIG51bSk6CiAgICAgICAgaWYgaXNpbnN0YW5jZShudW0sIE9wcG9zaXRlTWF0aCk6CiAgICAgICAgICAgIG51bSA9IG51bS5udW0KICAgICAgICByZXR1cm4gc2VsZi5udW0gKiBudW0KICAgIGRlZiBfX3RydWVkaXZfXyhzZWxmLCBudW0pOgogICAgICAgIHJldHVybiBzZWxmLl9fZGl2X18obnVtKQogICAgZGVmIF9fc3RyX18oc2VsZik6CiAgICAgICAgcmV0dXJuIHN0cihzZWxmLm51bSkKICAgIGRlZiBfX2ludF9fKHNlbGYpOgogICAgICAgIHJldHVybiBpbnQoc2VsZi5udW0pCiAgICBkZWYgX19sb25nX18oc2VsZik6CiAgICAgICAgcmV0dXJuIGxvbmcoc2VsZi5udW0pCiAgICBkZWYgX19mbG9hdF9fKHNlbGYpOgogICAgICAgIHJldHVybiBmbG9hdChzZWxmLm51bSkKICAgICAgICAKYSA9IE9wcG9zaXRlTWF0aCgyKQpiID0gT3Bwb3NpdGVNYXRoKDQpCgpwcmludChzdHIoYSArIGIpKQpwcmludChzdHIoYSAtIGIpKQpwcmludChzdHIoYSAqIGIpKQpwcmludChzdHIoYSAvIGIpKQpwcmludChzdHIoYSA+IGIpKQpwcmludChzdHIoYSA8IGIpKQpwcmludChzdHIoYSA9PSBiKSkKcHJpbnQoc3RyKGEgPj0gYikpCnByaW50KHN0cihhIDw9IGIpKQo="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
class OppositeMath():
    def __init__(self, num):
        self.num = num
    def __eq__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num != num
    def __gt__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num <= num
    def __ge__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num < num
    def __lt__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num >= num
    def __le__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num > num
    def __add__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num - num
    def __sub__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num + num
    def __mul__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num / num
    def __div__(self, num):
        if isinstance(num, OppositeMath):
            num = num.num
        return self.num * num
    def __truediv__(self, num):
        return self.__div__(num)
    def __str__(self):
        return str(self.num)
    def __int__(self):
        return int(self.num)
    def __long__(self):
        return long(self.num)
    def __float__(self):
        return float(self.num)
        
a = OppositeMath(2)
b = OppositeMath(4)

print(str(a + b))
print(str(a - b))
print(str(a * b))
print(str(a / b))
print(str(a > b))
print(str(a < b))
print(str(a == b))
print(str(a >= b))
print(str(a <= b))