Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # To change this license header, choose License Headers in Project Properties.
- # To change this template file, choose Tools | Templates
- # and open the template in the editor.
- import Player
- __author__="marcosilva"
- __date__ ="$Aug 8, 2014 12:35:48 AM$"
- if __name__ == "__main__":
- print "Hello World"
- #{"id":27,"r":77,"n":14,"f":"Joe","l":"Cole"}
- def parser(str):
- str=eval(str)
- player = Player.Player(int(str['id']),int(str['r']),int(str['n']) ,str['f'],str['l'],str.get('c'))
- return player
- def __getitem__(self):
- return self.player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement