这回咱们用个pandas库 1.首先先看将列表存储到csv: 代码来自于:https://blog.csdn.net/weixin_43245453/article/details/90054820 import pandas as pd #a和b的长度必须保持一致,否则报错 a = [x for x in range(5)] print(a) b = [x for x in range(5,10)] #字典中的key值即为csv中列名 dataframe = pd.DataFrame({'a_