python chain模块 chain函数串联a和b,兼顾内存效率同时写法更加优雅。 from itertools import chain a = [1,3,5,0] b = {‘a’:1,’b’:2} for i in ch … 继续阅读 python chain模块