Guest User

Untitled

a guest
Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. class test(object):
  2. def __init__(self):
  3. self.board = ("123","456")
  4. def __getitem__(self,a):
  5. (x,y) = a
  6. return self.board[x][y]
  7. A = test
  8. print(A[0,0])
Add Comment
Please, Sign In to add comment