#循环多个列表 list1 = [1,2,3] list2 = ["a","b","c"] list3 = ["v","x","w"] for i,j,k in zip(list1,list2,list3): print(i,j,k)
#列表奇偶数 L = range(12) #列表1-12 list_j = [i for i in L if i % 2 == 1]#奇数 list_o = [i for i in L if i % 2 == 0]#偶数 print(list_j) print(list_o)
标签:12,Python,list1,list,列表,print,操作 From: https://www.cnblogs.com/shan-gui-yao/p/17465326.html