keys = df['A'].tolist() # 列A values = df['B'].tolist() # 列B dict_list = dict(zip(keys, values)) dict_list 就是 想要的数据格式