Parameter problem of python function * args, * * kwargs

 def a(*args, **kwargs):
        pass
 
 def b():
     return (a=1,b=2,c=3)
     
     
 ba
 a(a=1,b=2,c=3) 
 a(b) forb
 
 
    
   
Sep.01,2021

def a(*args, **kwargs):
    print kwargs
 
def b():
    return {"a":1,"b":2,"c":3}
a(**b())
    
Menu