Python: variadic parameters(*) and keyword parameters(**)
There is a question:
I want to define a function to add all elements in a list that I created just now,how can I do that?
Here is the common answer:
def add(my_list):
sum = 0
for list i...
原创
2020-03-23 23:49:18 ·
152 阅读 ·
0 评论