def print_params(*params): print(params) print_params('Testing')print_params(1,2,3) #参数前的星号将所有值放置在同一个元组中 def print_params_2(title, *params): print(title) print(*params) print_params_2('Params:',1,2,3) result: ('Testing',) (, , ) Params: 为了解决能处理关键字参数的…