res = func(*args, **kwargs)
时间: 2023-09-30 10:04:32 浏览: 135
Python 中的*args 和**kwargs
This line of code calls a function "func" and passes in arguments using the *args and **kwargs syntax. *args is used to pass a variable number of positional arguments, while **kwargs is used to pass a variable number of keyword arguments. The returned value of the function is then assigned to the variable "res".
阅读全文