执行下面Python代码后,输出的结果是?
python复制1def func(x, y, *args, z=10, **kwargs): 2 return x + y + z + sum(args) + kwargs.get('m', 0)python复制1result = func(1, 2, 3, 4, z=5, m=6, n=7),[object Object], 2print(result),[object Object],
1def func(x, y, *args, z=10, **kwargs): 2 return x + y + z + sum(args) + kwargs.get('m', 0)
1result = func(1, 2, 3, 4, z=5, m=6, n=7),[object Object], 2print(result),[object Object],
21
28
31
程序会报错