2013-04-16 103 views

回答

0

如何:

l1 = {1, 2, 3, 4, 5}; 
l2 = {a, b, c, d, e}; 

Partition[Riffle[l1, l2], 2] 
 
{{1, a}, {2, b}, {3, c}, {4, d}, {5, e}} 

或者,你可以嘗試

l1 = {1, 2, 3, 4, 5}; 
l2 = {a, b, c, d, e}; 

Transpose[{l1, l2}] 
 
{{1, a}, {2, b}, {3, c}, {4, d}, {5, e}}