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.
onvif python 将从 WSDL 创建基本变量,但不是可选元素。如何将可选变量添加到现有定义中?
如 a = create(sometype)
这定义了元素 ab 和 ac
我需要添加元素 acd、aceg 和 aceh
简短的回答:这取决于现有变量是什么。
更长的答案:由于现有变量是由几乎没有可见性的第三方库定义的,因此在调试器下运行代码,它将告诉您现有变量是什么,例如列表、字典等。从该信息中查看如果您不熟悉该类型的变量,请参阅 python 文档。