Demo entry 6656504

   

Submitted by 都将 on Oct 31, 2017 at 15:20
Language: Python 3. Code size: 120 Bytes.

zipped = zip(a,b)  # 打包为元组的列表 --> [(1, 4), (2, 5), (3, 6)]  
zip(a,c)   # 元素个数与最短的列表一致  --> [(1, 4), (2, 5), (3, 6)] 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).