In VarArgs parameters, how order will set for **param in python?

前端 未结 0 838
夕颜
夕颜 2021-01-05 15:57

Here are the code and output

def total(a=5, *numbers, **phonebook):
print(\'a\', a)
#iterate through all the items in tuple
for single_item in numbers:
print(         


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