What is the purpose and use of **kwargs?

前端 未结 13 2184
伪装坚强ぢ
伪装坚强ぢ 2020-11-21 04:59

What are the uses for **kwargs in Python?

I know you can do an objects.filter on a table and pass in a **kwargs argument. &nbs

13条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-21 05:37

    kwargs are a syntactic sugar to pass name arguments as dictionaries(for func), or dictionaries as named arguments(to func)

提交回复
热议问题