import os import pandas as pd from sklearn import linear_model path = r'D:\新数据\每日收益率' filenames = os.listdir(path) for filename in filenames: print(filename) for i in filenames: excel_path = 'D:\新数据\每日收益率\\' + i f = open(excel_path,'rb') data = pd.re