最終更新:2021-08-14 (土) 07:37:39 (985d)
Python/引数
Python/キーワード引数
- Python/**
complex(real=3, imag=5) complex(**{'real': 3, 'imag': 5})
**kwargs?
- 複数のキーワード引数を辞書として受け取る
Python/位置引数?
- Python/*
complex(3, 5) complex(*(3, 5))
*args?
- 複数の引数をタプルとして受け取る