def login(self, **kwargs):
payload = {<EOL>'<STR_LIT:username>': self.username,<EOL>'<STR_LIT:password>': self.password,<EOL>}<EOL>headers = kwargs.setdefault('<STR_LIT>', {})<EOL>headers.setdefault(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'<EOL>)<EOL>url = '<STR_LIT>'<EOL>response = self.request(url, '<STR_LIT>', json=payload, **kwargs)<EOL>r_json = response.json()<EOL>return r_json['<STR_LIT>'] == <NUM_LIT:0><EOL>
登录