#!/usr/bin/python3.8

class Vector:
   def _ _init_ _(self, a, b):
      self.a = a
      self.b = b
   def _ _str_ _(self):                           #дprint()ӡVectorʵϢ
      return 'Vector (%d, %d)' % (self.a, self.b)

   def _ _add_ _(self,other):                      #ء+
      return Vector(self.a+other.a, self.b+other.b)
   def _ _add_ _(self,other):                      #ء-
      return Vector(self.a-other.a, self.b-other.b)

# 
v1 = Vector(2,10)
v2 = Vector(5,-2)
print (v1 + v2)
ϳнΪ
Vector (7, 8)