老男孩第十四期 python 自动化运维第三周 函数
摘要:''' 参数要在非固定参数和关键字参数前面 实参优先匹配参数,其次是关键字参数, 如果形参被无固定值赋值,那么在进行制定赋值就会报错 def test(i,*args): print(i) print(args) test(1,2,3,i=3)#报错 ''' print('test:') def t
阅读全文
posted @ 2021-01-23 10:01
posted @ 2021-01-23 10:01
posted @ 2020-12-24 10:26