記事 Seisuke Nakahashi · 2023年4月27日 2m read Pythonの可変長引数の呼び方 / ChatGPTサンプル Python で可変長引数をもったメソッドを考えてみましょう。以下の a.py があるとき def test1(*args): return sum(args) def test2(**kwargs): a1 = kwargs.get("a1",None) a2 = kwargs.get("a2",None) return a1+a2 #ChatGPT #Embedded Python #Python #InterSystems IRIS #InterSystems IRIS for Health 5 0 0 45