Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1.     def __repr__(self):
  2.         #s= "(type : {}".format(self.type)
  3.         s = ""
  4.         if self.type == 0:
  5.             s += "(I:{})".format(self.sub1)
  6.         if self.type == 1:
  7.             s += "1-{}".format(repr(self.sub1))
  8.         if self.type == 2:
  9.             s += "({} | {})".format(repr(self.sub1), repr(self.sub2))
  10.         return s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement