package com.swift.kuozhan; import java.io.File; import java.io.FileFilter; /*使用文件过滤器筛选将指定文件夹下的小于200K的小文件获取并打印(包括所有子文件夹的文件).*/ public class kuaozhan1 { public static void main(String[] args) { File dir = new File("c:/"); if(!dir.exists()) { throw…
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…