1.函数定义和调用 下面def test部分的代码块是函数定义:test(2,3)则是函数调用 def test(a,b): print(a) print(b) test(,) 2.必填参数,即函数调用的时候,必须填入的参数. def test(a,b): print(a) print(b) test() 报错信息:TypeError: test() missing required positional argument: 'b' 3.默认值参数,如下,调用的时候不填写则使用默认值,填写则使用