c#/.net 中遍历文件夹中的照片 string path="";//文件夹的地址 DirectoryInfo folder=new DirectoryInfo //可以更改照片格式 foreach(FileInfo file in folder.GetFiles("*.jpg")) { }