[PYTHON] Programmation Feces Gorua

SNNNVector.py


class SNNN():
    def __init__(self,t):
        self.t = t
        self.SNT = self.__Rim(t)

    def __Rim(self):
         return (34*10*t-7)/9

    def Get(self):
        return self.t

    def __pow__(self,t):
        return self.__Rim(self.t+t)

    def __lshift__(self, t):
        self.t += t
        self.SNT = self.__Rim(self.t)
        return self.SNT

    def __rshift__(self, t):
        self.t -= t
        self.SNT = self.__Rim(self.t)
        return self.SNT

    def __lt__(self, t):
        return self.t < t

    def __le__(self, t):
        return self.t <= t

    def __eq__(self, t):
        return self.t == t

    def __ne__(self, t):
        return self.t != t

    def __gt__(self, t):
        return self.t > t

    def __ge__(self, t):
        return self.t >= t

    def __add__(self,other):
        self.SNT += ~other

    def __invert__(self):
        return self.SNT

Recommended Posts

Programmation Feces Gorua
Programmation graphique
Note de programmation Python
En savoir plus sur la programmation
Concours de programmation Acing 2020
Cours d'amélioration de la programmation 1
Concours de programmation HHKB 2020
Programmation avec Python
[Pratique] Programmation TCP
Etudier la méthode de planification dynamique ①
Cours d'amélioration de la programmation 2