python 实际工作中的实例python 实际工作中的实例 让 windows 压测机 解析内网进行压测,避免占用外网带宽 1)生成 hosts 解析文件,将解析文件分成 N 份,解析到不同的 内网ip cat syncxxxhosts.py 2)将 压测机 分为 N 组,生成 ansible 动态 Inventory cat get_hosts.py 3)编写 playbook , author iconClaycalendar icon2021年5月11日category iconPythontag icon工作脚本timer icon大约 15 分钟