用 zip 加推导式很容易就可以简化 A = [1,2,3,4] B = ['a','b','c','d'] C = [random() for i in range(4)] data_array = [A,B,C] # 可以添加任意长度的数据 keys = ['one','other_one','two','other_two'] # dict 的 key 值固定
all = [dict(zip(column,data_item)) for data_item in zip(*data_array)]