Tuesday 15 February 2011

python - What is this object? -



python - What is this object? -

i know info object i'm new python , don't understand user_output doing. trying understand this.

def user_output(self,check): #data object output = "" #loop of info __user_arr user in self.__user_arr: if user.user_bot == str(check): output += ''' <div class='about'> <h1>{user.user_name}</h1> <h2>my favorite band is: {user.user_band} </h2> <div class='business'> <p>why want tickets:<br /> {user.user_business}</p> </div> </div> ''' homecoming output.format(**locals()) else: #this spit error if user not reply lastly question correctly. output = '''<div class='error'><h2>turns out robot. no tickets </h2></div>''' homecoming output

it generate each user div block favorite bands etc. , provided that, user flag user_bot equal check (as far can understand kind of bot check). if user bot (does not pass check) programme generate turns out robot.. block.

python python-2.7

No comments:

Post a Comment