list1 = [1, 2, 3, 4, 5] list2 = ['a','b', 'c', 'd', 'e'] list3 = [1, 2, 3, 4, 5] multi_list = map(list, zip(list1, list2, list3)) for i in multi_list: print i ’‘’ 输出结果 [1, 'a', 1] [2, 'b', 2] [3, 'c', 3] [4, 'd', 4] [5, 'e', 5] ‘’‘
2023-12-05 21:49:16
list1 = [1, 2, 3, 4, 5] list2 = ['a','b', 'c', 'd', 'e'] list3 = [1, 2, 3, 4, 5] multi_list = map(list, zip(list1, list2, list3)) for i in multi_list: print i ’‘’ 输出结果 [1, 'a', 1] [2, 'b', 2] [3, 'c', 3] [4, 'd', 4] [5, 'e', 5] ‘’‘