我想为错误的密码和错误的用户名提供不同的消息??如何从响应中检测用户名错误或密码错误?
auth = aiohttp.BasicAuth(username, password)
with aiohttp.ClientSession(loop=loop, auth=auth) as client:
client.post(Some_data) as response
我想为错误的密码和错误的用户名提供不同的消息??如何从响应中检测用户名错误或密码错误?
auth = aiohttp.BasicAuth(username, password)
with aiohttp.ClientSession(loop=loop, auth=auth) as client:
client.post(Some_data) as response