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.
外部ファイルから、次の辞書を生成します。
mydict = { 'foo' : 123, 'bar' : 456 }
引数を取る関数が与えられた場合、**kwargsその辞書からどのようにキーワード引数を生成できますか?
**kwargs
def foo(**kwargs): pass foo(**{ 'foo' : 123, 'bar' : 456 })