我有以下函数签名:
# my signature def myfunction(x, s, c=None, d=None): # some irrelevant function body
我需要位置参数的数量。如何返回位置参数 (x & s) 的数量 (2)。关键字参数的数量不相关。
python python-3.x
python ×1
python-3.x ×1