【发布时间】:2013-12-08 03:20:39
【问题描述】:
我正在使用 Python 试图找出一个关键词,我看到了“kwargs”这个词,我知道这是被调用函数中的某种参数,但我在任何地方都找不到它的含义或代表.
例如,Python 文档中的这个条目说...
read_holding_registers(address, count=1, **kwargs)
参数:
address – The starting address to read from
count – The number of registers to read
unit – The slave unit this request is targeting
它看起来像一个指向指针的引用,但这就是我的全部 可以告诉...
这甚至没有在参数列表中使用“**kwargs”它使用
在我看来,“unit”而不是“kwargs”。
我似乎在任何地方都找不到kwargs 的含义。
也许是“关键词论据”?我在这里错过了什么?
关于这里的帮助有什么想法吗? 谢谢 ! 鲍勃
【问题讨论】: