in_sizes = [512,256] sizes = [128,64] print(zip(in_sizes,sizes)) print(list(zip(in_sizes,sizes))) print(zip(*zip(in_sizes,sizes))) print(list(zip(*zip(in_sizes,sizes)))) for (in_size,out_size) in zip(in_sizes,sizes): print((in_size,out_size))
参考:https://www.runoob.com/python3/python3-func-zip.html
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)