iterate over args and kwargs in one loop

后端 未结 0 431
[愿得一人]
[愿得一人] 2020-11-28 23:29

Is it possible to iterate args and kwargs at one time? Something like

def func(*args, **kwargs):
   for i, t in args, kwargs:
      print(i, t)
相关标签:
回答
  • 消灭零回复
提交回复
热议问题