在Python定义的函数中,有的参数为*args或**kwargs,但是这里面需要传递什么参数,这在函数中没有,怎样知道它需要传递什么参数呢,比如,在matplotlib.pyplot中的函数plot的定义中,它是<pre>def plot(*args, **kwargs):
ax = gca()
# allow callers to override the hold state by passing hold=True|False
washold = ax.ishold()
hold = kwargs.pop('hold', None) if hold is not None:
ax.hold(hold) try:
ret = ax.plot(*args, **kwargs) finally:
ax.hold(washold)