Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 suds.client.Client 对象。我可以通过硬编码方法名称来调用方法,例如
myclient = suds.client.Client 结果 = myclient.service.some_method(args)
我希望能够执行一个名称直到运行时才知道的方法。我敢肯定这很简单,但我对泡沫很陌生,它似乎做了一些非常疯狂的魔法。
谢谢
result = getattr(myclient.service, 'some_method')(...)