我正在使用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的意思。
也许是“关键词争论”?我错过了什么?
有什么帮助的建议吗?
谢谢您!
鲍勃