Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test(object):
- def t1(self):
- print "t1!"
- def t2(self):
- print "t2!"
- test = Test
- lst = []
- lst.append(test.t1)
- lst.append(test.t2)
- if __name__ == "__main__":
- lst[0]()
- lst[1]()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement