ResNetCode Analyse
作者:互联网
BONUS:
1.parameter *
3meanings
*-->tuple&decompressing parameter list
**-->Dict
eg:tuple Dict
>>> def foo(a, b=10, *args, **kwargs): print a print b print args print kwargs >>> foo(1, 2, 3, 4, e=5, f=6, g=7) 1 2 3 4 {'e': 5, 'g': 7, 'f': 6}
eg:Decompression
>>> def foo(bar, lee): print bar, lee >>> l = [1, 2] >>> foo(*l) 1 2
https://www.cnblogs.com/arkenstone/p/5695161.html
标签:eg,Analyse,ResNetCode,Dict,kwargs,print,foo,parameter 来源: https://www.cnblogs.com/Marigolci/p/11375391.html