![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
aiohttp
高压锅_1220
宠辱不惊,看庭前花开花落;去留无意,望天上云卷云舒!
心中有阳光,脚下有力量!
展开
-
asyncssh.connect 用法(解决手动输入yes)
1. asyncssh.connect()参数# 连接华为设备,执行命令async def run_process(): ip_addr = "28.104.87.140" user = "root" password = "123456" kex_algs = ["diffie-hellman-group1-sha1", "diffie-hellman-group-exchange-sha1"] async with asyncssh.connect(ip_addr, username=us原创 2021-05-26 14:54:07 · 954 阅读 · 0 评论 -
aiohttp 设置ClientSession参数
1. 设置cookiescookies = {'xxx': 0}async with aiohttp.ClientSession(headers=headers, cookies=cookies) as session: result_text = None try: result = await session.post(url, timeout=timeout, data=data) result_text = await result.text()原创 2021-05-26 11:17:58 · 3963 阅读 · 0 评论