2008-04-17から1日間の記事一覧
関数に渡す値を辞書型にして渡す方法結果的には test(**dic) のように渡せば良い以下実験 >>> h = dict(req="",arg='aaa') >>> test(h) >>> test1(h) >>> test1(*h) arg >>> test1(*h) arg >>> test(*h) arg >>> h {'req': '', 'arg': 'aaa'} >>> h = dict(r…
関数に渡す値を辞書型にして渡す方法結果的には test(**dic) のように渡せば良い以下実験 >>> h = dict(req="",arg='aaa') >>> test(h) >>> test1(h) >>> test1(*h) arg >>> test1(*h) arg >>> test(*h) arg >>> h {'req': '', 'arg': 'aaa'} >>> h = dict(r…