args tag

6 questions


1 answers
85 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
99 views
0
**To extract a value from kwargs?

How do I extract specific values from **kwargs?I know that kwargs is dict type,I'm not sure if I should approach like dict or use the get() function when approachingPeople seem to write whatever they ...

2 years ago

1 answers
131 views
0
When do we use the variable argument in Java?

I learned about the variable factor, but I don't know what it's for. I don't know if you need this.I'm a little worried that people might pass as many parameters as they want by using variable argumen...

2 years ago

1 answers
103 views
0
In Java, parameters... "There are three dots. What is this?"

While looking at the source, there are three dots on the parameter as shown below, what does this mean? public void myMethod(String... strings){ // // method body}

2 years ago

1 answers
96 views
0
How do I deliver all the factors I received for

If you have any idea what to do to hand over the factors you received to other functions in a function that receives multiple factors using...void format_string(char *msg, ...);void debug_print(int db...

2 years ago

3 answers
130 views
0
In the Go language function parameter transfer

type Brand struct { Idx string `json:idx` Code int `json:code` Name string `json:name`}brands := make([]*Brand, 0)r.DB.Raw(query).Scan(&brands)DB data is added to the brands variable with the abov...

2 years ago

© 2024 OneMinuteCode. All rights reserved.