根据https://stackoverflow.com/a/218709/2687324,可以使用inspect模块获取Python方法的参数名称。但是,当我尝试使用内置函数时:
>>> import inspect
>>> inspect.getargspec(max)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\python\Python27\lib\inspect.py", line 816, in getargspec
raise TypeError('{!r} is not a Python function'.format(func))
TypeError: <built-in function max> is not a Python function
有没有办法以编程方式获取内置Python函数的参数名称?