zip
先上官网的定义:
zip的使用:
将多个 list 组合成 tuple 的 list:
将多个 list 组成 dict:
将多个 tuple 组成的 list 拆分成多个 tuple:
将多个 list 组成的 list 拆分成多个 tuple:
将多个 tuple 组成的 tuple 拆分成多个 tuple:
将列表中相邻的几项合并:
参考博客;
https://blog.csdn.net/pipixiu/article/details/81255533#%E8%87%B4%E8%B0%A2