摘要:
作用:在不修改函数的前提下,为函数增加新的功能 def say(): print("tttt is a good man!") # def outer(): # print("***************") # say() def outer(func): def inner(): print( 阅读全文
posted @ 2019-12-18 16:31
陌小唐
阅读(108)
评论(0)
推荐(0)
摘要:
def func(arg,*args_tuple,**args_dic) 带*的参数会以元组的形式导入,带**的参数会以字典的形式导入 def fuc(a,*arg): print(a) print(arg) fuc("hello",1,2,3,4,5) 输出结果: def fuc(a,*arg,* 阅读全文
posted @ 2019-12-18 16:12
陌小唐
阅读(221)
评论(0)
推荐(0)

浙公网安备 33010602011771号