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.
クラス継承を使用してsunburnt(solrインターフェイス)のクエリを作成したいので、キーと値のペアを一緒に追加します。日焼けしたインターフェースはキーワード引数を取ります。({'type':'Event'})dictをキーワード引数に変換するにはどうすればよい(type='Event')ですか?
({'type':'Event'})
(type='Event')
double-star (別名double-splat? ) 演算子を使用します。
func(**{'type':'Event'})
と同等です
func(type='Event')