标签:
1.
ta = [1,2,3] tb = [9,8,7] tc = [‘a‘,‘b‘,‘c‘] for (a,b,c) in zip(ta,tb,tc): print(a,b,c)
2.
ta = [1,2,3]
tb = [9,8,7]
# cluster
zipped = zip(ta,tb)
print(zipped)
# decompose
na, nb = zip(*zipped)
print(na, nb)
标签:
原文地址:http://www.cnblogs.com/luo-mao/p/5942810.html