可能重复: 在python中获取方法参数名称
有没有一种简单的方法可以在python函数中获取参数名称列表?
例如:
def func(a,b,c): print magic_that_does_what_I_want() >>> func() ['a','b','c']
谢谢
python parameters
parameters ×1
python ×1