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) 

 

posted @ 2017-02-10 22:17  飘渺红尘✨  阅读(184)  评论(0编辑  收藏  举报
Title