函数实参部分传值遇到的问题
# def func(*args):
# for i in args:
# print(i)
# print(args)
#
#
# func(*{"a":2,"s":2,"j":2,"t":2,"u":2,"i":2}) # 循环取出*后面的值,所以字典只能取出key值。
# 其他可循环的数据类型值都会被循环打散
# a
# i
# j
# s
# u
# t
# ('a', 'i', 'j', 's', 'u', 't')
# def func(x,y,*args):
# print("xxxxx")
# print(args) # args 返回一个空的元组,并不会报错
#
# func(*(1,2))
#
# def func(x,y,**args):
# print("xxxxx")
# print(args) # args 返回一个字典
#
# func(*(1,2),a = 3) # * 后面跟着的参数打散后传给形参