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…
问题:如何输出给定文件夹目录下面的所有文件的名称? C#代码: using System; using System.IO; namespace MyTest { public class Program { public static void Main(string[] args) { // 假设是输出 f:\temp 文件下的所有文件的名称 args = new string[] { "f:\\temp" }; foreach (string path in args) { if…