Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. class Test(object):
  2.     def t1(self):
  3.         print "t1!"
  4.        
  5.     def t2(self):
  6.         print "t2!"
  7.  
  8. test = Test
  9. lst = []
  10. lst.append(test.t1)
  11. lst.append(test.t2)
  12.  
  13. if __name__ == "__main__":
  14.     lst[0]()
  15.     lst[1]()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement