【问题标题】:how to do 'knife client delete' and 'knife client create' using PyChef?如何使用 PyChef 进行“刀客户端删除”和“刀客户端创建”? 【发布时间】:2025-12-24 02:35:07 【问题描述】: 什么是等价的翻译: knife client delete notcool.my.com knife client create cool.my.com 在PyChef? 【问题讨论】: 标签: python chef-infra pychef 【解决方案1】: from chef import autoconfigure, Client api = autoconfigure() Client.delete('notcool.my.com') Client.create('cool.my.com') 【讨论】: