当函数包含函数未使用的参数时,请在函数中使用kwargs假设我有以下功能: def sub1(a,b,foo="bar"): print(a+b) print(foo) def main(*args,**kwargs): a,b ...2024-05-14 已阅读: n次