怎样将两个列表,按列导出,变成csv文件。list1=[['及格'],['优秀'],['良好']] list2=['不及格','及格','优秀']
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)