用到的方法主要有: my_dict = dict(zip(dataframe['列1'], dataframe['列2'])) 案例 import pandas as pd import numpy as np df = pd.DataFrame(data=np.random.randint(0, 10, size=(10, 2)), columns=['a', 'b']) my_dict = dict(zip(df['a'], df['b'])) print(my_dict)