import pandas as pd data = pd.read_excel('XX.xls') data.to_csv('words.txt', sep=' ') 第j列 data.iloc[:, j] 第i行 data.iloc[i,:] 赋值 data.iloc[2, 3] = 0.98