重复多个位置形参的定义标签:return,定义,形参,重复,demo,------------,func,def From: https://www.cnblogs.com/leeyong49/p/16664634.html
def demo(*p):return sum(p)
demo(1,2,3,4,5) # 15
# ------------
def func(**p):return sum(p.values())
print(func(a=1, y=1111, z=2)) #1114
# ------------
def func(**p):return ''.join(sorted(p))
print(func(z=3,x=1, y=2,)) # xyz
print('qwer'.join('dsb')) # dqwersqwerb