argument-passing tag

2 questions


1 answers
86 views
0
What are ** and * in the parameters?

What does * and ** attached to param2 do in the code below?def foo(param1, *param2):def bar(param1, **param2):


1 answers
101 views
0
To reference a variable

It seems that the Python document does not clearly state whether variables are passed by reference or by value when they are passed by parameters. When you turn the code below, the variable value does...


© 2024 OneMinuteCode. All rights reserved.