我如何修补一个对象,使除一个外的所有方法都被模拟?我有一个入口点函数调用它main,因为它调用了对象上的其他几个方法: class Thing(object): def main(self): self.alpha() ...2024-03-29 已阅读: n次