How to find out the default values of a particular function's argument in another function in Python?

前端 未结 4 1764
野的像风
野的像风 2021-01-12 01:01

Let\'s suppose we have a function like this:

def myFunction(arg1=\'a default value\'):
  pass

We can use introspection to find out the name

4条回答
提交回复
热议问题