Python - Return function arguments as a list

后端 未结 0 1241
南方客
南方客 2020-12-01 05:33

Is it possible to return a list of a functions arguments in Python? For example

func(arg1, arg2, arg3):
  do stuff

print(func.args)

["arg1", "         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题