<s> from request import toto_request <EOL> from sys import stdin <EOL> def login ( user_id , password ) : <EOL> response = toto_request ( '<STR_LIT>' , { '<STR_LIT>' : user_id , '<STR_LIT:password>' : password } ) <EOL> if '<STR_LIT:result>' in response : <EOL> with open ( '<STR_LIT>' , '<STR_LIT:wb>' ) as session_file : <EOL> session_file . write ( "<STR_LIT>" % response [ '<STR_LIT:result>' ] [ '<STR_LIT>' ] ) <EOL> session_file . write ( "<STR_LIT>" % response [ '<STR_LIT:result>' ] [ '<STR_LIT>' ] ) <EOL> return response <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> print "<STR_LIT>" <EOL> user_id = stdin . readline ( ) . strip ( ) <EOL> print "<STR_LIT>" <EOL> password = stdin . readline ( ) . strip ( ) <EOL> print login ( user_id , password ) </s>
