Python反转过程学习
Pyhon的反转过程的学习:
#coding:utf-8
#反转过程.py
"""
def add(x,y):
return x+y
params=(1,2)
add(*params) #返回3
"""
"""
def with_stars(kwds):
print kwds['name'],'is',kwds['age'],'years old'
args={'name':'jack','age':18}
with_stars(args)
"""
def with_stars(**kwds):
print kwds['name'],'is',kwds['age'],'years old'
args={'name':'jack','age':18}
with_stars(**args)