import pandas as pd list1=[['a'],['b'],['c']] list2=['A','B','C'] x=list1[0] for i in range(len(list2)): x[i]=list1[i] list1[i].append(list2[i]) print('x=',x) data=pd.DataFrame(x,columns=['语文',数学'] print(data)
就是用队列堆出的处理就行了