• 2022-07-27
    下列Python代码,函数的定义和调用书写正确的是()
    A: def test(a| b): print(a) print(b) test(1| 2)
    B: def test(a): print(a) print(b) test(1, 2)
    C: def test(a, b): print(a) print(b) test(1)
    D: def test(a, b): print(a) print(b) test(1, 2)