根据您的输入,我假设您正在尝试实现类似的目标?#import libraryimport pandas as pdpd.__version__# read the csv with all columnsdf = pd.read_csv('myfile.csv')print (df)# create csv with filtered columnsfilter_cols = ["0","3","4","5","9"]df.to_csv('output.csv', columns = filter_cols)