[('foo', 1, 2), ('bar', 'hello'), ('foo', 3, 3)]
>>> def dofoo(x,y):
print('foo',x,y)
>>> def dobar(s):
print('bar',s)
>>> for tag,*args in records:
print(tag,args)
foo [1, 2]
bar ['hello']
foo [3, 3]
>>> for tag,*args in records:
print(args)
[1, 2]
['hello']
[3, 3]
>>>
网友评论