07 2024 档案

摘要:Subprocess 介绍 subprocess 模块是 Python 标准库中的一个模块,用于管理子进程(子程序)。通过 subprocess 模块,可以在 Python 脚本中启动新的进程、连接到它们的输入/输出流以及获取它们的返回值。 Subprocess 主要功能 1. 执行外部命令:sub 阅读全文
posted @ 2024-07-24 13:49 小吉猫 阅读(1450) 评论(0) 推荐(2)
摘要:配置说明 由firewalld管理docker iptables规则。 firewalld 查看活动区 # firewall-cmd --get-active-zones public interfaces: ens33 配置规则 firewall-cmd --permanent --delete- 阅读全文
posted @ 2024-07-23 14:58 小吉猫 阅读(346) 评论(0) 推荐(0)
摘要:concurrent 介绍 concurrent.futures 是 Python 中的一个模块,提供了一个高级接口,用于异步执行函数或方法。 concurrent.futures 提供了2个池执行器: ThreadPoolExecutor:该类使用一组线程来异步执行调用。它适用于 I/O 密集型操 阅读全文
posted @ 2024-07-17 08:57 小吉猫 阅读(478) 评论(0) 推荐(0)
摘要:Paramiko 说明 Paramiko 是一个用于在 Python 中实现SSH协议的模块,它允许你在远程服务器上执行命令、上传和下载文件等操作。 Paramiko 组件 paramiko.Transport paramiko.Transport 是用于建立安全通信隧道的类,它是 SSH 连接的核 阅读全文
posted @ 2024-07-16 10:07 小吉猫 阅读(761) 评论(0) 推荐(0)