소스 검색

Update vec.py

blueloveTH 1 년 전
부모
커밋
a947f7249f
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      benchmarks/vec.py

+ 3 - 0
benchmarks/vec.py

@@ -10,6 +10,9 @@ class vec2:
 
     def __eq__(self, other):
         return self.x == other.x and self.y == other.y
+    
+    def __ne__(self, other):
+        return not self == other
 
 x = vec2(0, 0)
 for i in range(10000000):