Dismantling sequence of function calls

It refers to the function call, providing tuple, or dictionary transfer function parameters.

. 1  DEF mySum (A, B):
 2      return A + B
 . 3  Print ( ' dismantling tuple call: ' )
 . 4  Print (mySum (* (3,4- )))
 . 5  Print ( ' dismantling dictionary call: ' )
 6  Print (mySum (** { ' A ' : ' . 3 ' , ' B ' : ' . 4 ' }))

 

Guess you like

Origin www.cnblogs.com/bcyczhhb/p/11732141.html