标签:blog 序列 pre color zip out list span lis
zip() 用于对两个序列做对应处理
In [94]: list1 = [1, 2, 3] In [95]: list2 = [‘a‘, ‘b‘, ‘c‘] In [96]: zip(list1, list2) Out[96]: [(1, ‘a‘), (2, ‘b‘), (3, ‘c‘)]
标签:blog 序列 pre color zip out list span lis
原文地址:http://www.cnblogs.com/pzk7788/p/7141036.html